On 14 May 2012 09:16, Rainer Schuetze <[email protected]> wrote: > Than try to load it: >> HINSTANCE LoadME; >> LoadME = LoadLibrary(L"C:\\Users\\**CrashTUA\\Documents\\visual studio >> 2010\\Projects\\DynamicLib1\\**DynamicLib1\\Release\\**DynamicLib1.dll"); >> func dllprintt; >> dllprintt = (func)GetProcAddress(LoadME,"**trololo"); >> > > The C calling convention prepends an underscore to the function name: > dllprintt = (func)GetProcAddress(LoadME,"_**trololo");
It seems GetProcAddress pulls that off for you. I thought that too, but it always workout without adding the _ for me.
