entry point dll
BOOL APIENTRY DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
switch ( dwReason )
{
case DLL_PROCESS_ATTACH:
if( CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)ThreadTest, NULL, NULL, NULL)
)
break;
}
return TRUE;
}
i keep getting
1>------ Build started: Project: DeVinConsole, Configuration: Debug Win32 ------
1>Build started 12/25/2011 8:19:30 PM.
1>InitializeBuildStatus:
1> Touching "Debug\DeVinConsole.unsuccessfulbuild".
1>ClCompile:
1> main.cpp
1>LINK : fatal error LNK1561: entry point must be defined
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.04
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
can anyone help