String 从来没用过,刚查了下。 The String structure depicts the organization of data in a file-version resource. It contains a string that describes a specific aspect of a file, for example, a file's version, its copyright notices, or its trades. 是个结构体,貌似就是VC6里面资源最后面的那个东西嘛。 struct String { WORD wLength; WORD wValueLength; WORD wType; WCHAR szKey[]; WORD Padding[]; WORD Value[]; }; WCHAR szKey[]; 键值 WORD Value[]; 值。
是String 不是string
是System::String
那CString应该可以直接format BSTR或者起码(char*)BSTR
The String structure depicts the organization of data in a file-version resource. It contains a string that describes a specific aspect of a file, for example, a file's version, its copyright notices, or its trades.
是个结构体,貌似就是VC6里面资源最后面的那个东西嘛。
struct String {
WORD wLength;
WORD wValueLength;
WORD wType;
WCHAR szKey[];
WORD Padding[];
WORD Value[];
};
WCHAR szKey[]; 键值
WORD Value[]; 值。
则
BYTE buffer //收到的内容
string sss = (string)buffer.
或则调试看内从,看字符串从哪开始的,算出偏移值string(c++) sss = (char*)(buffer + 偏移) 就得到了字符串如果你不知道是什么 先看内存吧.
是这个
我让我没表示清楚我调用的是个WebServers 接口函数返回String
String到CString就是Format就可以了。实在是太菜了。