The below should hopefully be enough for you to get what I'm trying to do in this instance, and also what I need help with (can't seem to get the right search terms inputted so trying here instead).
1 2 3 4 5 6 7 8 9
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp||In function 'bool LibGetX(ui64, void*, ui32)':|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp|32|error: invalid type argument of 'unary *'|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp||In function 'bool LibSetX(ui64, void*, ui32)':|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp|43|error: invalid type argument of 'unary *'|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp||In function 'bool LibGetPtr(ui64, ui64*)':|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp|50|error: invalid conversion from 'ui64*' to 'long long unsigned int'|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp||In function 'bool LibGetPtrArray(ui16, ui64*, ui64**)':|
C:\Me\Prjs\cpp\HackerEX\HackerEX_LIB\hexLibMain.cpp|60|error: invalid conversion from 'ui64*' to 'long long unsigned int'|
||=== Build finished: 4 errors, 0 warnings ===|
For the first two errors, address is not a pointer, it's a value and you can't dereference it
For the last two I don't know the technical terms to explain it, it has to do with lvalues and rvalues. Anyway, to assign a pointer you don't dereference it. You do
The values of them, yes. This is part of a hacking tool I'm making and only the user will know anything about program they are trying to hack, this is why I tried using brackets to avoid treating the variables themselves as the targets for address extraction.
Similar functions are Read/WriteProcessMemory from the Windows API but it is possible that attaching a library is more appropriate in some cases which is why I'm trying to provide this functionality before I continue, I know Renegade64 somehow made use of such functionality but I'm having trouble making heads or tails of the code so I gave on that route.
Edit: I made an Beta before that was based on RenegadeEX (with author's permission) but I ended up disliking the GUI, Code and missing functionality so I started from scratch with a fresh GUI idea and I'd like to implement this functionality before I continue on with the rest.
While that does silence the compiler on that issue I somehow doubt that will achieve my goal, but only testing will tell in this case but before that I will have to silence the wxWidgets errors that popped up as a result of the compiler getting past that.
I will try again in the morning if I remember but for now I'm going to bed. Thx again.