[求助]问下我在VC里加载DLL后调用为什么老出错?
在CPP文件头:HINSTANCE gLibmspassword=NULL;
typedef int(*MYBEEP)(void);
MYBEEP MyBeep;
typedef int(*MYBEEP)(void);
MYBEEP MyBeep;
加载:
gLibmspassword=LoadLibrary("mspassword.dll");
MyBeep=(MYBEEP)GetProcAddress(gLibmspassword,"MyBeep");
调用:MyBeep=(MYBEEP)GetProcAddress(gLibmspassword,"MyBeep");
MyBeep();
能编译,但一调用就...
[此贴子已经被作者于2007-9-16 14:06:13编辑过]