程序出错,帮帮我!!

starmmer 2004-02-20 11:26:33
//省略,名称"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.
...全文
39 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复

15,473

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧