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 


byte[] size??

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 3:49 am    Post subject: byte[] size?? Reply with quote

Hi, how can I change the size of array of bytes? I'm getting the value of from the user and then I want to insert the bytes into my variable, but how can I change the size? size is known after the input. (value of bytes.Length / 2)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Jan 07, 2008 4:44 am    Post subject: Reply with quote

Like having the array size to a param? You can do something like:

Code:
void YourFunctionHere( int iSizeOfArray )
{
   BYTE* bArray = new BYTE[iSizeOfArray];

   // Other Code Here ...

   delete[] bArray;
}


Not sure if thats what you ment.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 5:51 am    Post subject: Reply with quote

Yea, thats it... I knew it was something like that I just forgot!! >_<
Thanks a lot, its done now: (Attached)
^_^
From the right used to be a memory view, but it lagged a lot just for 10,000 addresses, FFFFFFFF wouldn't even load =( I guess I have to add FFFFFFFF items before Rolling Eyes

Edit: forgot to explain how to use...
Type the process name in the text box (for example winmine and open winmine) type 100579C 0000 (Address Bytes or Address Bytes Comments) and write the code Very Happy time is 0000. Rolling Eyes



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Jan 07, 2008 8:50 am    Post subject: Reply with quote

You should enumerate the processes in a list box or something, then allow the user to select one and like click an attatch button, for example.
_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
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