Hi,
I'm messing around with self modifying code, and from reading the forums, (hm's comments), I've done the following
I then put the self modifying code into this allocated area.
After this I then perform the following
However this is causing errors in the linker,
error LNK2019: unresolved external symbol "void __cdecl CacheSync(int)" (?CacheSync@@YAXH@Z) referenced in function ....
I've searched all the ms headers, and cannot find a reference to any of these definitions. Any help would be most appreciated!
Glen.
I'm messing around with self modifying code, and from reading the forums, (hm's comments), I've done the following
- Code:
pCodeMemory = reinterpret_cast<u8 *>(VirtualAlloc(0, 1024, MEM_COMMIT, PAGE_EXECUTE_READWRITE));
I then put the self modifying code into this allocated area.
After this I then perform the following
- Code:
CacheSync(CACHE_SYNC_INSTRUCTIONS | CACHE_SYNC_WRITEBACK);
However this is causing errors in the linker,
error LNK2019: unresolved external symbol "void __cdecl CacheSync(int)" (?CacheSync@@YAXH@Z) referenced in function ....
I've searched all the ms headers, and cannot find a reference to any of these definitions. Any help would be most appreciated!
Glen.