我在DLL中导出函数如下
_declspec (dllexport) int UnPacketTCPData(LPCTSTR pStrValue, UPMSG &outUpMsg)在客户端调用如下:
UPMSG resUpMsg
resUpMsg.cmd = "";
resUpMsg.commType = "";
resupmsg.downtime = "";
...int retval;
retval = UnPacketTCPData(strValue, resUpMsg);
得到的结构体没有数值,为什么???各位大哥,帮下忙好吗?
_declspec (dllexport) int UnPacketTCPData(LPCTSTR pStrValue, UPMSG &outUpMsg)在客户端调用如下:
UPMSG resUpMsg
resUpMsg.cmd = "";
resUpMsg.commType = "";
resupmsg.downtime = "";
...int retval;
retval = UnPacketTCPData(strValue, resUpMsg);
得到的结构体没有数值,为什么???各位大哥,帮下忙好吗?
解决方案 »
- 高分请教24位图截取,请牛人帮忙。。。在线等!!!
- [挑战难题]如何快速读取一个超长文本文件
- vc + ado + Sql server sp4 释放_RecordSetPtr->Release gp 问题?高分请教!!!!!!!!!!!
- 有关windows网络的问题
- 【VC/MFC 版务公告······续】
- ★奇怪!(有关文件夹)★
- 如何设置一个全局变量,让多个类共享?
- 请问在vc++中怎样建立编辑连接运行cpp文件
- SOCKET编译错误的问题
- 请问如何让基于对话框的应用程序接收到WM_KILLFOCUS消息?
- 实现界面内从新命名问题
- ADO的连接字符串是这个样子吗?救命啊m_pConnection->Open("Provider=SQLOLEDB;SERVER=127.0.0.1;DATABASE=mga2000;UID=sa;PWD=mga2000",
_declspec (dllexport) int UnPacketTCPData(LPCTSTR pStrValue, UPMSG &outUpMsg)
参数表中传递引用有无问题???