|
-
Jul 30th, 2005, 05:04 PM
#1
Thread Starter
New Member
[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.
-
Jul 30th, 2005, 05:11 PM
#2
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
- ØØ -
-
Jul 30th, 2005, 05:11 PM
#3
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
-
Jul 30th, 2005, 05:12 PM
#4
Re: Fraps and vb ...
 Originally Posted by Jacob Roman
But that is your own game....I don't think he ment his own games? or did he?
-ØØ -
-
Jul 30th, 2005, 05:19 PM
#5
Re: Fraps and vb ...
I'm thinking he meant his own games since he said he just started learning DirectX in VB.
-
Jul 30th, 2005, 05:26 PM
#6
Thread Starter
New Member
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
-
Jul 30th, 2005, 05:49 PM
#7
-
Jul 30th, 2005, 08:31 PM
#8
Thread Starter
New Member
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:
Option Explicit
Private Declare Function GPSL_SetTextLineData Lib "gpcomms.dll" _
(ByVal wTextPosX As Integer, ByVal wTextPosY As Integer, _
ByVal LPCTSTR As String, ByVal dwTextColor As Long, _
ByVal bBlackBackground As Boolean, ByVal cSize As Byte, _
ByVal bTextBold As Boolean, ByVal cFontFamily As Byte) As Boolean
Private Declare Function GPSL_ShowText Lib "gpcomms.dll" (ByVal bShowIt As Boolean) As Boolean
Private Sub Command1_Click()
GPSL_SetTextLineData 100, 100, "i love myself", &HFFFFFFFF, True, 50, True, 0
GPSL_ShowText True
End Sub
Last edited by god_69; Jul 30th, 2005 at 08:34 PM.
-
Jul 31st, 2005, 02:32 AM
#9
-
Jul 31st, 2005, 05:45 AM
#10
Thread Starter
New Member
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
-
Aug 1st, 2005, 09:41 AM
#11
I don't live here any more.
-
Aug 1st, 2005, 11:01 AM
#12
Thread Starter
New Member
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
-
Mar 21st, 2009, 03:39 PM
#13
Member
Re: [VB]Displaying text into directx application
all of these links are dead =(
-
Mar 22nd, 2009, 09:21 AM
#14
Fanatic Member
Re: [VB]Displaying text into directx application
Thats's because the last post was in 2005.
-
Jun 17th, 2009, 10:47 PM
#15
New Member
Re: [VB]Displaying text into directx application
dam ./ i need that too. i will search when saw something i will post here the links.
-
Jun 17th, 2009, 10:57 PM
#16
New Member
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".
-
Oct 15th, 2009, 10:04 AM
#17
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|