我有一个post-build事件,它为ac#project运行一些命令.最后一个命令有时会导致ERRORLEVEL值不等于零,然后构建失败.
我想附加一行额外的命令来始终将ERRORLEVEL值设置为零.最方便的方法是什么?
当我按照MSDN文档使用CA2W将big5字符串转换为Visual Studio 2005中的unicode字符串时,我遇到了一个奇怪的编译错误.
这是我写的代码:
#include <string>
#include <atldef.h>
#include <atlconv.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string chineseInBig5 = "\xA4\xA4\xA4\xE5";
ATL::CA2W(chineseInBig5.c_str());
return 0;
}
Run Code Online (Sandbox Code Playgroud)
编译错误:错误C3861:'AtlThrowLastWin32':找不到标识符
我不知道这怎么可能发生.AtlThrowLastWin32的文档显示atldef.h是必需的,但我在atldef.h中找不到AtlThrowLastWin32的声明.