DLL
你好!
> 请问如何用Visual C++ 6.0编动态连接库,使VB也可以调用,我选了MFC APP Wizard(DLL) à Regular DLL using share MFC DLL这个选项创建的DLL可以被C++的程序正常调用,但是用VB调用则总是显示调用约定错误(49),DLL在VB模块中的类型声明是按照被调用DLL的原形来声明的,VB的Integer对应C++ 的int, 但就是每次都显示DLL调用约定错误。请问这是什么原因?我百思不得其解,谢谢赐教!
>
>代码如下
>
>extern "C" __declspec(dllexport) int SCommMsg(CString str1)
>
>{
>
> AFX_MANAGE_STATE(AfxGetStaticModuleState());
>
>
>
> AfxMessageBox(str1);
>
>
>
> return 1;
>
>}
please send answer to this :xds7788@sina.com