View previous topic :: View next topic |
Author |
Message |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 3:49 am Post subject: byte[] size?? |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Jan 07, 2008 4:44 am Post subject: |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 5:51 am Post subject: |
|
|
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
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 time is 0000.  |
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Jan 07, 2008 8:50 am Post subject: |
|
|
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. _________________
|
|
Back to top |
|
 |
|