?
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
?
263 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

770 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