Solved

FindFirstFileW LPCWSTR

Posted on 2014-12-30
2
115 Views
Last Modified: 2014-12-30
Hi Experts,

I am now moving to the utf8everywhere.org way of doing things.  So I'm keeping utf8 as my internal encoding and as output of all my files.  When I need to talk to windows, I am going to convert my utf-8 strings into whatever Windows expects.

So what encoding does Windows expect with calls to FindFirstFileW?  I am compiling with unicode enabled, so I need to widen my utf-8 so that it matches the encoding that FindFirstFileW uses.

Thanks,
Mike
0
Comment
Question by:thready
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40524020
You should have seen the examples at utf8everywhere.org - it is explains exactly what to use for proper "widening" for Win API calls. The "*W" API calls are all "wide", (say UTF16).
0
 
LVL 1

Author Closing Comment

by:thready
ID: 40524148
Thank you, I had forgotten.  And yes- all UTF-16...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

867 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

15 Experts available now in Live!

Get 1:1 Help Now