CString不能用
我建了一个win32 DLL
在一个文件中我用到了CString形的数据,编译老是提示我出错
#ifndef __PUBLICSOURCE__
#define __PUBLICSOURCE__
#include "stdafx.h"
/*
描述:常用公共函数类
*/
class Tpublicsource
{
public:
CString bytetostr(BYTE value);
// int HexToBuf(char *buf,int len);
};
#endif
--------------------Configuration: Dll_VC - Win32 Debug--------------------
Compiling...
publicsource.cpp
d:\xj_work_station\test\1203\002\dll_vc\publicsource.h(12) : error C2146: syntax error : missing ';' before identifier 'BYTE2Str'
d:\xj_work_station\test\1203\002\dll_vc\publicsource.h(12) : error C2501: 'CString' : missing storage-class or type specifiers
执行 cl.exe 时出错.
Creating browse info file...
Dll_VC.dll - 1 error(s), 0 warning(s)