misiti3780
asked on
Converting DSP's from WIN32 to Unicode
Hello,
I am trying to convert two projects from WIN32 to unicode. The two projects depend on a library that already builds in Win32 Unicode Debug successfully. I'm trying to convert the other two projects over and its not going very well. Here are some of the errors I am getting::::
c:\program files\microsoft visual studio\vc98\atl\include\at lconv.h(12 5) :
error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
c:\program files\microsoft visual studio\vc98\atl\include\at lbase.h(50 31) :
error C2440: 'initializing' : cannot convert from 'unsigned short [25]' to 'const char []'
....I have a lot of errors but they all seem to involve the converting of arrays, and they are all in those two header files............
I believe my problem is the compiler can't find the USES_CONVERSTION macro but im not 100% positive.
IF anyone has a solution or can re-direct me towards some helpful documentation (I cannot seem to find any) I would appreciate it.
Thanks A lot,
misiti3780
I am trying to convert two projects from WIN32 to unicode. The two projects depend on a library that already builds in Win32 Unicode Debug successfully. I'm trying to convert the other two projects over and its not going very well. Here are some of the errors I am getting::::
c:\program files\microsoft visual studio\vc98\atl\include\at
error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
c:\program files\microsoft visual studio\vc98\atl\include\at
error C2440: 'initializing' : cannot convert from 'unsigned short [25]' to 'const char []'
....I have a lot of errors but they all seem to involve the converting of arrays, and they are all in those two header files............
I believe my problem is the compiler can't find the USES_CONVERSTION macro but im not 100% positive.
IF anyone has a solution or can re-direct me towards some helpful documentation (I cannot seem to find any) I would appreciate it.
Thanks A lot,
misiti3780
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you using
#define UNICODE
in the settings or the code also?
#define UNICODE
in the settings or the code also?
ASKER
the errors are occuring with the inline functions within atlbase.h and another file. the functions that are failing are within #define _UNICODE ....but I myself only include the _UNICODE in my project->preprossor settings...not in my code
ASKER
on a side note....only some of the inline functions that are failing from atlbase.h are actually be called in my application...aka functions that are NOT being called on are stilling failing...that might have something to do their inline decleration though.....
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Split: jkr {http:#9680253} & Madz {http:#9693375}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Tinchos
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Split: jkr {http:#9680253} & Madz {http:#9693375}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Tinchos
EE Cleanup Volunteer
ASKER