一个为VB写的DLL,其中有一个LPSTR&参数输出结果信息,在VC里怎么做?
typedef int (*TESTDLL)(LPSTR szHostName,int nPort,LPSTR& lpsMsg);
LPSTR strMsg;
if(lpproc!=(TESTDLL)NULL)
{
iResult = (*lpproc)( "192.168.1.6" , 5151 , strMsg);
MessageBox( 0 , strMsg , "DLL" , MB_OK);
}
这样做好像不行
VB里调用:
Dim sMsg As String * 200
lRetVal = eConnectServer(txtServer.Text, port, sMsg)
不能改DLL的情况一如何调用?