程序出错,帮帮我!!
//省略,名称"testDll2.exe","testDll.dll"
HINSTANCE hLibrary;
PFNRECT pFunction;
hLibrary=LoadLibrary("testDll.dll");
pFunction=(PFNRECT)GetProcAddress(hLibrary,"CTestDllApp");
pFunction();
FreeLibrary(hLibrary);
MessageBox(TEXT("good"),TEXT("happy"),MB_OK);
程序执行完pFunction()后系统报错,调试时执行完该句弹出对话框"Unhandled exception in testDll2.exe:0xC0000005:Access Violation.