Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB] TextOut is not working...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AwayTheWInd
Master Cheater
Reputation: 0

Joined: 11 Sep 2007
Posts: 450

PostPosted: Wed Feb 25, 2009 6:35 pm    Post subject: [VB] TextOut is not working... Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Feb 25, 2009 9:44 pm    Post subject: Reply with quote

Why are you using CreateDC?

Use GetDC
Back to top
View user's profile Send private message
AwayTheWInd
Master Cheater
Reputation: 0

Joined: 11 Sep 2007
Posts: 450

PostPosted: Thu Feb 26, 2009 5:26 pm    Post subject: Reply with quote

GetDC doesnt work and it gets hooked by gameguard later
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Feb 26, 2009 5:40 pm    Post subject: Reply with quote

Hookhop works...
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Feb 27, 2009 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Sat Feb 28, 2009 1:01 am    Post subject: Reply with quote

dnsi0 wrote:
Hookhop works...

He's using VB, then he'd have to use an external DLL..
Back to top
View user's profile Send private message Visit poster's website
AwayTheWInd
Master Cheater
Reputation: 0

Joined: 11 Sep 2007
Posts: 450

PostPosted: Sat Feb 28, 2009 3:18 pm    Post subject: Reply with quote

im drawing over my screen for now, not a game.

its not doing anything and i know createdc is working..

_________________
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Mar 01, 2009 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites