USES_CONVERSION
-
Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below:
VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed. -
Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below:
VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.Have you defined both
UNICODE
and_UNICODE
macros? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
Friends, I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ?? I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally. But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below:
VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.USES_CONVERSION; BSTR b = T2OLE("blbla"); http://www.exontrol.com