Un autre canadienne. But anyway. That is really strange. I've never gotten console output as an error before. What IDE are you using, And what operating system?
That said, that's a quite a cool program your writing! Essentially it searches the memory for values and displays those addresses, right?.
However, even if you fix this bug i think you will run into access violations. and isn't the first parameter of the read process memory function supposed to be a handle to the process you are reading the memory of?
I'm using Dev C++ on Windows XP.
I got the handle from another part of the code, I made sure it wasn't that causing the problem. I've used readprocessmemory() before but not like this.
Maybe this will help but I think it might be the buffer size. I tryed making a buffer size of 3 bytes and scanned the value of addresses I got off cheatengine and it worked well. It out of the 3 addresses it scans, it outputed the right address.
Do you think I could make the buffer size smaller, read that many bytes, then just add to the base address and scan again?
I don't know if that will work. >.>
Well maybe you could scan in parts?
Instead of having one big MASSIVE array. Have a relatively small array, search from there, delete it, then make another array for the next segment.
Oh, that's basically what you said. >_<. Except you already formed a way of doing it in your head. Kudos. So how is the handle part working? I thought you needed to have the handle to the process of the address space upon which you are intruding. But apparently you found someway to dance around that?
Having a small buffer size completely defeats the purpose of what i'm trying to do. Sorry, I didn't tell you what i was expecting this program to do. I'm trying to make a memory scanner, and at first tryed using ReadProcessMemory for each address which was extremely slow.
I'm still going to try your idea though, trying right now.
Thanks for your replies.
No problem I've got nothing to do. And i kinda figured you were doing a memory scanner. Why would a small buffer size be a problem? Well besides speed. I'm not exactly sure how much slower it would be.
Your welcome. Your project seems interesting. If you have any more concerns feel free to ask so i can Fail at answering you =D
Wow. Haha. took me about 20min to figure this out xD.
Ok. so Im guessing you only set the buffer to the size of the value your scanning for. For instance if your scanning for a char value or bool set the buffer to 1byte. Or if your scanning for a int set it to 4bytes. Correct? or maybe it depends on what LPBYTE is? A long pointer to a byte? so basically long char* and your assigning it a value of a single byte.... Im confused again. :l
Thanks, I actually ran into a few more problems but i'm going to take a rest for today.
Good night.