Solved

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

Posted on 2006-06-13
7
225 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 42
List out all word 7 289
How to determine file rename from EventLog ? 2 49
withoutTen challenge 14 120
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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