English 中文(简体)
视像C++ 6.0 项目是否支持统一编码?
原标题:Check whether a Visual C++ 6.0 project did support unicode or not?

我需要知道,视觉C++6.0项目是否支持统法协会。 我如何检查?

问题回答

如果该项目得到统法协会的支持,则先处理人指令。 UNICODE(或_UNICODE)将予以界定。 测试能否确定这一点,将给你回答:

#if defined(UNICODE) || defined(_UNICODE)
    // The project is compiled for Unicode
#else
    // The project is NOT compiled for Unicode
#endif

你们也可以在项目环境中检查。

  1. From the "Project" menu, click "Settings".
  2. Select the "C/C++" tab.
  3. In the "Preprocessor definitions" section, check for the presence of UNICODE and _UNICODE.

如果你有一个目前以统法协会为对象的项目not<>em>,但你希望看到该项目是can/em>的,那么,最好做的是确定这些加工商的指示,然后尝试汇编你的项目。 如果成功,那么你会重新确定。 如果它失败,就会处理和纠正汇编者所犯的错误。

#ifdef UNICODE
#   error Success!
#endif




相关问题
how to reliable capture display setting changed

static void Main() { // Set the SystemEvents class to receive event notification when a user // when display settings change. SystemEvents.DisplaySettingsChanged += new ...

Why use CComBSTR instead of just passing a WCHAR*?

I m new to COM. What exactly is the advantage of replacing: L"String" with CComBSTR(L"String") I can see a changelist in the COM part of my .NET application where all strings are replaced in this ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

Statically linking Winsock?

I m using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I m looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I ...