用VC编写DLL
BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
 )
{
MessageBox(NULL, "This is in test Dll", "OK", MB_OK);
return TRUE;
}__declspec(dllexport) int TestExport()
{
MessageBox(NULL, "good", "here you are", MB_OK);
return 1;
}
组建好DLL ,用RUNDLL32命令运行
RUNDLL32.EXE DLLL.DLL,TestExport后,在DllMainLI的MessageBox(NULL, "This is in test Dll", "OK", MB_OK)有执行,但TestExport执行不了,显示DLL丢失条目。
如果编写一个Win32 App工程又可以执行,WHY?