| View previous topic :: View next topic |
| Author |
Message |
AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Wed Feb 25, 2009 6:35 pm Post subject: [VB] TextOut is not working... |
|
|
I can properly do this in C++ but it is not working in VB 6
I can CreateDC("DISPLAY", vbNullString, vbNullString, 0) fine
but the TextOut function will not draw...
This is what i have...
**gb is already defined as Long
gb = CreateDC("DISPLAY", vbNullString, vbNullString, 0)
TextOut(gb, 50, 50, "Hello World!", 12)
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Feb 25, 2009 9:44 pm Post subject: |
|
|
Why are you using CreateDC?
Use GetDC
|
|
| Back to top |
|
 |
AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Thu Feb 26, 2009 5:26 pm Post subject: |
|
|
GetDC doesnt work and it gets hooked by gameguard later
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 26, 2009 5:40 pm Post subject: |
|
|
| Hookhop works...
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Fri Feb 27, 2009 8:50 am Post subject: |
|
|
| you have to loop the textout call you know ? since the game draws over it.. also not sure if createdc is hooked or not, check its return value.
|
|
| Back to top |
|
 |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Sat Feb 28, 2009 1:01 am Post subject: |
|
|
| dnsi0 wrote: | | Hookhop works... |
He's using VB, then he'd have to use an external DLL..
|
|
| Back to top |
|
 |
AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Sat Feb 28, 2009 3:18 pm Post subject: |
|
|
im drawing over my screen for now, not a game.
its not doing anything and i know createdc is working..
_________________
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Mar 01, 2009 5:11 pm Post subject: |
|
|
| also getdc works fine as long as you use it correctly. when i last tried it definitely worked anyway. don't remember if it is hooked or not but if it is it is definitely only usermode. loop textout..
|
|
| Back to top |
|
 |
|