Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I delete a unicode file using MFC application if the PC doesn't support unicode.

Posted on 2006-06-13
7
Medium Priority
?
264 Views
Last Modified: 2013-11-20
I am trying to delete a unicode name picture using MFC application, but I couldn't delete it.  When I debug, the name shows as '???????.bmp', how can i convert this to some ascii characters.  I am able to delete this file from windows, but not from the application.   I just want to know what makes windows to delete this file and How can we delete this using MFC application without making PC to support unicode( from control panal->language).   Thanks for your help in advance.
0
Comment
Question by:sparkythedog
[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
  • 3
  • 2
7 Comments
 
LVL 22

Expert Comment

by:mahesh1402
ID: 16899695
How are you compiling your application ? ANSI ?? if so try to compile it as UNICODE so that you can access UNICODE strings within your application..

-MAHESH
0
 
LVL 22

Expert Comment

by:mahesh1402
ID: 16900144
Also have a look at function WideCharToMultiByte() to convert UNICODE to ANSI.

-MAHESH
0
 

Author Comment

by:sparkythedog
ID: 17326866
Hay Dan, I couldn't solve the problem yet
0
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 1500 total points
ID: 17331865
In my last post I asked him to try WideCharToMultiByte() to convert UNICODE to ANSI.....didnt got reply.

-MAHESH
0
 

Author Comment

by:sparkythedog
ID: 17335099
All right, sorry for being rude. We will be more carefully next time.

Thank you for your advice.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 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