草庐IT

samDesired

全部标签

c++ - 如何在静态库 (.lib) 中同时支持 Unicode 和多字节字符集?

我正在使用visualstudio2015,我想编写可在Unicode项目和多字节项目中使用的C++静态库,我该怎么做?例如我有这段代码:namespaceReg{LONGWINAPICreateKey(_In_HKEYhKey,_In_LPCTSTRlpSubKey,_In_REGSAMsamDesired,_Out_PHKEYphkResult){returnRegCreateKeyEx(hKey,lpSubKey,0,NULL,REG_OPTION_NON_VOLATILE,samDesired,NULL,phkResult,NULL);}} 最佳答案