Results 1 to 17 of 17

Thread: [VB]Displaying text into directx application

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    7

    [VB]Displaying text into directx application

    Hey everyone !

    I've been using fraps for some months now. For those who doesn't know what i is, it simply shows your fps in a game and capture it ... www.fraps.com. I've started to learn the directx part of visual basic, and I was wondering how was fraps displaying the fps in the corners ... how can I display something like that inside a directx game ...

    Thanks in advance,
    JP
    Last edited by god_69; Aug 1st, 2005 at 10:20 AM.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Fraps and vb ...

    This is a higly advanced topic. And I am not even sure if VB can handle it. Been to many years since I last used it. But at least the way to go is to use a Proxy DLL, to hock to DirectX. This is not easy, but at least there is one or more proxy DLLs all ready made for you. Even if I am not sure if VB can use them. Take a look here for more info:

    http://www.proxy.mikoweb.de/index.php


    - ØØ -

  3. #3
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Fraps and vb ...

    To do that, you do it manually without using fraps. And it works! Here's how I do it in these two DirectX apps that I have made:

    www.angelfire.com/fl5/memorydll/index.html

    Source + Exe included

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Fraps and vb ...

    Quote Originally Posted by Jacob Roman
    To do that, you do it manually without using fraps. And it works! Here's how I do it in these two DirectX apps that I have made:

    www.angelfire.com/fl5/memorydll/index.html

    Source + Exe included


    But that is your own game....I don't think he ment his own games? or did he?


    -ØØ -

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Fraps and vb ...

    I'm thinking he meant his own games since he said he just started learning DirectX in VB.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    7

    Re: Fraps and vb ...

    Well, not MY own games, but published games like UT2k4, farcry ...

    And i'm an advance vb coder, just haven't touch the directx part of vb because I find it useless in vb... but now it kinda interests me ...

    I'll take a look at it and see If I can start with something ...

    Anything new is still welcomed...

    JP

    NoteMe: Geneva is a nice city

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Fraps and vb ...

    Would be interesting to see if you can make it work. Looks like the guy that made the Proxy DLL is interesting to see if anyone can make it work in VB too.....so would be happy if you posted here if managed to get anywhere...

    Yeah Geneva is nice...still miss Norway some times though.....but it is nice living here too..


    - ØØ -

  8. #8

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    7

    Re: [VB]Fraps and vb ...

    Hey, well finally got it to work... god I love myself lol...

    So ya I used the proxy dll from http://www.proxy.mikoweb.de/download.php and here is my wonderful code to hook text into a directx game

    Download the GPP 1.3 test package (rev.5/5) and read the read me for more info...

    I'll try to hook images tomorrow... im tired now

    Noteme: ya i've been to geneva last november ... student exchange in germany and made a trip there to see some friend ...

    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function GPSL_SetTextLineData Lib "gpcomms.dll" _
    4.     (ByVal wTextPosX As Integer, ByVal wTextPosY As Integer, _
    5.     ByVal LPCTSTR As String, ByVal dwTextColor As Long, _
    6.     ByVal bBlackBackground As Boolean, ByVal cSize As Byte, _
    7.     ByVal bTextBold As Boolean, ByVal cFontFamily As Byte) As Boolean
    8.    
    9. Private Declare Function GPSL_ShowText Lib "gpcomms.dll" (ByVal bShowIt As Boolean) As Boolean
    10.  
    11. Private Sub Command1_Click()
    12.  
    13.     GPSL_SetTextLineData 100, 100, "i love myself", &HFFFFFFFF, True, 50, True, 0
    14.    
    15.     GPSL_ShowText True
    16.    
    17.    
    18. End Sub
    Last edited by god_69; Jul 30th, 2005 at 08:34 PM.

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [VB]Fraps and vb ...

    Woohoo...very proud of you.... First guy that ever went through with it after I told how to do it...nice..Did you contact the guy that had made it? Looked like he wanted to know how to do it.


    BTW: I rated your post since you also posted the code. THis thread is bookmarked so I can just show it to the next person that wants to know how to do it.


    PS: I am just working here at CERN for a year. Last year for my batchelour degree. And then I am out of here again..

    - ØØ -

  10. #10

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    7

    Re: [VB]Fraps and vb ...

    Hey there,

    Well I will write to the guy, but there was a vb script in the zip file, there was only a mistake with the color, so it didn't work... Anyways, thks a lot... i'm also very proud of myself...

    Next step: hook and image into directx

  11. #11
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [VB]Fraps and vb ...

    Stop it you'll go blind.
    I don't live here any more.

  12. #12

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    7

    Re: [VB]Displaying text into directx application

    Ahah, got it !!! Hooking images to directx application is possible !!

    Head to http://www.proxy.mikoweb.de/index.php, download section and download the VB exemple file!

    JP

  13. #13
    Member Maltonomy's Avatar
    Join Date
    May 2005
    Location
    New York
    Posts
    48

    Re: [VB]Displaying text into directx application

    all of these links are dead =(

  14. #14
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 2008
    Location
    Chicago
    Posts
    864

    Re: [VB]Displaying text into directx application

    Thats's because the last post was in 2005.
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

  15. #15
    New Member
    Join Date
    Apr 2009
    Posts
    4

    Re: [VB]Displaying text into directx application

    dam ./ i need that too. i will search when saw something i will post here the links.

  16. #16
    New Member
    Join Date
    Apr 2009
    Posts
    4

    Re: [VB]Displaying text into directx application

    Plim the link is here .))

    http://www.mikoweb.eu/index.php?node=28

    see the links in the left section too "Proxy-Dll Concept".

  17. #17
    Hyperactive Member
    Join Date
    Mar 2009
    Posts
    462

    Re: [VB]Displaying text into directx application

    can anyone make a tutorial on how to do this i can't seem to get it to work i want to make my own fps program

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width