Solved

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

Posted on 2006-06-13
7
251 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 500 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

Suggested Solutions

Title # Comments Views Activity
WinWaitActive parameters 12 31
dog bark java program 15 130
sum13 challenge 24 146
either24  challenge 19 107
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

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