Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

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

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
sparkythedog
Asked:
sparkythedog
  • 3
  • 2
1 Solution
 
mahesh1402Commented:
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
 
mahesh1402Commented:
Also have a look at function WideCharToMultiByte() to convert UNICODE to ANSI.

-MAHESH
0
 
sparkythedogAuthor Commented:
Hay Dan, I couldn't solve the problem yet
0
 
mahesh1402Commented:
In my last post I asked him to try WideCharToMultiByte() to convert UNICODE to ANSI.....didnt got reply.

-MAHESH
0
 
sparkythedogAuthor Commented:
All right, sorry for being rude. We will be more carefully next time.

Thank you for your advice.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now