Posterrors (2)

Posts 15 of 5 · Page 1 of 1
errors (2)
code:

Error 1 error LNK2001: unresolved external symbol __DllMainCRTStartup@12
Error 2 error LNK1120: 1 unresolved externals

plz help?
Quote Originally Posted by Ch40zz-C0d3r View Post
Noob u need a dllmain.
code:

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Thread_XD3DXINIT, NULL, NULL, NULL);

return TRUE;
}

this is it?
Quote Originally Posted by dragonslop View Post
code:

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Thread_XD3DXINIT, NULL, NULL, NULL);

return TRUE;
}

this is it?
Yes that's one way to do it.
tryed still fails
Posts 15 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?