Solved

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

Posted on 2006-06-13
7
202 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
Comment Utility
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
Comment Utility
Also have a look at function WideCharToMultiByte() to convert UNICODE to ANSI.

-MAHESH
0
 

Author Comment

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

Accepted Solution

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

-MAHESH
0
 

Author Comment

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

Thank you for your advice.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now