Solved

FindFirstFileW LPCWSTR

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 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.

759 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

23 Experts available now in Live!

Get 1:1 Help Now