怎样把结构体的对象转为CString类型?解决思路
怎样把结构体的对象转为CString类型?
typedef struct
{
int iName;
DWORD dwoffset;
DWORD dwSize;
}Message;
Message msg; 已经给msg赋值了,我要把msg转为CString类型,能行吗??
开发环境:.net2003\MFC\MFC APPLICATION\DIALOG
------解决方案--------------------
Format函数肯定可以实现的
------解决方案--------------------
格式有没有特殊的要求,
CString str = " ";
str.Format( "%d%d%d ",msg-> iName,msg-> dwoffset,msg-> dwSize);
这样可以吗?
typedef struct
{
int iName;
DWORD dwoffset;
DWORD dwSize;
}Message;
Message msg; 已经给msg赋值了,我要把msg转为CString类型,能行吗??
开发环境:.net2003\MFC\MFC APPLICATION\DIALOG
------解决方案--------------------
Format函数肯定可以实现的
------解决方案--------------------
格式有没有特殊的要求,
CString str = " ";
str.Format( "%d%d%d ",msg-> iName,msg-> dwoffset,msg-> dwSize);
这样可以吗?