Get rid of W->A calls

Dimitrie O. Paun dimi at
Fri Sep 5 09:06:12 CDT 2003

On Fri, 5 Sep 2003, hatky wrote:

> What sould I do?
> 1. copy the entire DirectDrawEnumerateExA into it
> 2. create a 3rd function DirectDrawEnumerateEx that
> both of them will call
> 3. somthing else (you tell me)

It's not always the same answer. Most of the time, you do 

 3. xxxA converts its argumets to Unicode and calls xxxW
    There are plenty of examples in the tree how this is done,
    look for stuff using MultiByteToWideChar(). A good example
    is DrawTextExA/W in dlls/user/text.c

As for the 1 & 2 they are valid approaches sometimes, but
it's best to stay away from them.  For most cases 3 works fine.

Let us know if you need any help.


More information about the wine-devel mailing list