vc工程添加Unicode   Debug和Unicode   Release   
  通过使用unicode编译,软件可以适应多种情况,如何在自己的工程中添加这两种编译方式呢?下面是一个简单的步骤   
            
          1、新建一个工程;   
          2、选择“Build->Configurations”菜单   
          3、点击“Add”按钮,添加“Unicode   Debug”-拷贝“win32   Debug”配置   
                  添加“Unicode   Release”-拷贝“win32   Release”配置   ,然后点击“OK”   
          4、选择“Project->Setting”菜单   
          5、切换到“General   ”TAB页   
          6、修改“Win32   Unicode   Debug”的Intermediate   Files和Output   Files为DebugU         
          7、修改“Win32   Unicode   Release”的Intermediate   Files和Output   Files为ReleaseU         
          8、切换到“C++   ”   Tab页   
          9、从下拉列表框中选择“Preprocessor”   
          10、为“Win32   Unicode   Debug”和“Win32   Unicode   Release”分别添加_UNICODE和UNICODE   variables   
    
  还要在link中,Category选output,将Entry-Point   Symbol设为wWinMainCRTStartup   
    
  还要去找一下vc安装盘,   拷贝几个debug文件,   如MFCOD42.DLL等

解决方案 »

  1.   

    对不起各位,我点了Enter键就这样了,还没有说完问题呢,我按照上面说的选择“Build- >Configurations”菜单 , 点击“Add”按钮等找不到设置“Unicode   Debug”的选项,我的“platform”里只有win32 ,没有其他的Win32 Unicode.请问一下我是否还要在其他地方设置,才有
    Win32   Unicode   Release以及Win32   Unicode   debug
      

  2.   

    是要你自己写的,Win32   Unicode   Release这只是你起的一个名字,也可以叫别的,底下是选择从哪一个现有的编译环境中拷贝一些编译选项,你的unicode debug就从debug拷贝,unicode release从release拷贝就行了。