也许这对你来说不是问题!
wonry 2002-03-08 12:02:24 我用pb6.5开发一个项目,其中要调用vc做的dll,有两个问题:
1.pb中调用vc的正规dll,如果接口参数是字符串,我试了CString,char*,LPCTSTR,LPTSTR等,如下:
extern "C" void WINAPI showmsg(LPCTSTR str)
{
AFX_MANAGE_STATE(AfxGetstatic ModuleStute());
::AfxMessageBox(str);
}
.def文件也加了 showmsg @1
pb也全局函数定义也试了string str或ref string str,可有时是好的,有时不行,不知各位是如何处理的,最好能提源代码。
2.pb中如何处理dll发过来的消息,在other事件处理么,如何处理,最好能提源代码。
email:wonry@263.net