Solved

Converting DSP's from WIN32 to Unicode

Posted on 2003-11-04
8
315 Views
Last Modified: 2007-12-19
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\atlconv.h(125) :
error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'

c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(5031) :
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
0
Comment
Question by:misiti3780
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 9680253
Do you use

#define _UNICODE

or have that macro set in your project settings?
0
 

Author Comment

by:misiti3780
ID: 9680355
I have it set in my project settings but I dont use it in my code.
0
 
LVL 86

Expert Comment

by:jkr
ID: 9680417
Are you using

#define UNICODE

in the settings or the code also?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:misiti3780
ID: 9681355
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
0
 

Author Comment

by:misiti3780
ID: 9681367
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.....
0
 
LVL 3

Assisted Solution

by:Madz
Madz earned 125 total points
ID: 9693375
Try defining UNICODE, _UNICODE and FORCE_UNICODE macros in your c/c++ defines

Madz
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10242517
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
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
typedef std::deque<BYTE> ByteVector is broken in vs2012 23 94
best sources to up-to-date in C++? 8 115
max float value 3 73
using interface in TLB 3 29
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question