c++ - undefined reference to Mysnprintf -
I have no clue what is wrong because if I did this with The linker tells you that is undefined , and that's right. You have not written definition for your function you have only declared . After the function, place some curly braces and tell your compiler what you want to do do to do that function: CodeBlocks and am trying to create hook DLL inside
DllMain
#include "main.h" #include "asm.h" #include & lt; Stdio.h & gt; using namespace std; Static Violence WINAPI Mysnprintf (four * str, int len, const char * format, ...); Static Zero InitDll () {origininalsnprintf = (snprintfFn) GetProcAddress (GetModuleHandleA ("msvcr90.dll"), "_snprintf"); ASM code; Code.JMP ((int) Mysnprintf); // where JMP = Aussie & amp; JMP (Intrate) {...}}
Microsoft Visual C ++ So this will not work the error !!!
stable Violence WINAPI Mysnprintf (four * str, int len, const char * format, ...) {...}
Comments
Post a Comment