我不知道我的dll通常在函数__DllMainCRTStartup失败的原因?
这是我在gbkgw.dll中的代码:
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
UNREFERENCED_PARAMETER(hModule);
UNREFERENCED_PARAMETER(lpReserved);
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
这是我的gbkgw.dll转储崩溃文件:
STACK_TEXT:
00d0fe3c 71a28e83 71a20000 00d0fe68 777f8cc8 gbkgw!__DllMainCRTStartup+0xb0
00d0fe48 777f8cc8 71a20000 00000003 00000000 gbkgw!_DllMainCRTStartup+0x1e
00d0fe68 777cf724 71a28e65 71a20000 00000003 ntdll!LdrpCallInitRoutine+0x14
00d0ff0c 777cf625 00000000 00000000 00d0ff28 ntdll!LdrShutdownThread+0xe6
00d0ff1c 76f5ee73 00000000 00d0ff68 77803ab3 ntdll!RtlExitUserThread+0x2a
00d0ff28 77803ab3 71a4316c 762996c3 00000000 kernel32!BaseThreadInitThunk+0x15
00d0ff68 77803a86 71a278b0 71a4316c 00000000 ntdll!__RtlUserThreadStart+0x70
00d0ff80 00000000 71a278b0 71a4316c 00000000 ntdll!_RtlUserThreadStart+0x1b
FAULTING_SOURCE_LINE: f:\dd\vctools\crt_bld\self_x86\crt\src\dllcrt0.c
FAULTING_SOURCE_FILE: f:\dd\vctools\crt_bld\self_x86\crt\src\dllcrt0.c
FAULTING_SOURCE_LINE_NUMBER: 343
FAULTING_SOURCE_CODE:
No source found for 'f:\dd\vctools\crt_bld\self_x86\crt\src\dllcrt0.c'
你能帮忙吗?