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 


Need a little Help with C++

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

Joined: 08 Jan 2006
Posts: 109

PostPosted: Sun Jan 13, 2008 9:03 pm    Post subject: Need a little Help with C++ Reply with quote

I was wondering how you could allocate memory like you would in a CE Auto-assembler script in C++. Or is there another method of converting CE auto-assembler scripts into C++?
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Jan 13, 2008 9:26 pm    Post subject: Reply with quote

VirtualAllocEx();
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Tue Jan 15, 2008 12:23 pm    Post subject: Reply with quote

How do you choose addresses to allocate to?
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Tue Jan 15, 2008 12:44 pm    Post subject: Reply with quote

vegito616 wrote:
How do you choose addresses to allocate to?
Did you even check the reference?
Quote:
lpAddress

The pointer that specifies a desired starting address for the region of pages that you want to allocate.
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Tue Jan 15, 2008 1:53 pm    Post subject: Reply with quote

Damn, i did not read the page thoroughly enough, thanks! But now, I have one more question. How would you define labels in C++ like you would in a CE AA script?
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Wed Jan 16, 2008 9:31 am    Post subject: Reply with quote

vegito616 wrote:
Damn, i did not read the page thoroughly enough, thanks! But now, I have one more question. How would you define labels in C++ like you would in a CE AA script?
You really really should avoid that. But if you wanna do it, just do it like in an AA script:
Code:
labelname:
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