#include <windows.h>/*
struct CTL_PACKET
{
CString KeyNO;
CString CamNO;
CString Operate;
};
*/struct CTL_PACKET
{
CString KeyNO;
CString CamNO;
CString Operate;
};
#ifdef __cplusplus //!!!!
extern "C" { //!!!!
#endif //!!!int WINAPI CTL_Rece(CTL_PACKET *ptrPacket);
#ifdef __cplusplus //!!!!
} //!!!!
#endif //!!!!
我用VC做了一个DLL,其中需要在函数中返回文本(STRING),头文件如上,我能在DLL中使用CSTRING类吗,是否还要添加某个.H文件
struct CTL_PACKET
{
CString KeyNO;
CString CamNO;
CString Operate;
};
*/struct CTL_PACKET
{
CString KeyNO;
CString CamNO;
CString Operate;
};
#ifdef __cplusplus //!!!!
extern "C" { //!!!!
#endif //!!!int WINAPI CTL_Rece(CTL_PACKET *ptrPacket);
#ifdef __cplusplus //!!!!
} //!!!!
#endif //!!!!
我用VC做了一个DLL,其中需要在函数中返回文本(STRING),头文件如上,我能在DLL中使用CSTRING类吗,是否还要添加某个.H文件
在C和其它编译环境中你的结构体就编译不过的..