Solved

FindFirstFileW LPCWSTR

Posted on 2014-12-30
2
118 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 69

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

770 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