I usually use RadAsm + masm32 to build my application,  i want to build Unicode's version now. How can i do for it?

Posted on 2006-08-12 04:18:02 by jhkdiy
It must be a macro like WCHAR to create unicode strings. Check your includes or do your own :)
Posted on 2006-08-12 05:14:43 by Axial
Thanks for help. but i can't understand it too,
Is it none of the API's business?
How to make this macro ?  Someone have example?

thanks for any reply.
Posted on 2006-08-12 11:34:53 by jhkdiy
If you are using masm then you can to use the "L" macro from Ernie. Here is a link to L on his homepage (gives a little insight into macros and a pretty complete explanation of L).

An updated version of L can be found in your com\include\ subfolder.

You can use it as follows:

UnicodeString  WCHAR    L(<I need a Job\0>)
Posted on 2006-08-12 12:45:11 by JimmyClif
Also, for all the API you use (that accept strings as parameters), notice there are 2 versions: A and W (ansi and wide-char).
CreateFileA, CreateFileW. masm32's includes like windows.inc  are configured by default to call the ansi version.

For example, in user32.inc:

CallWindowProc equ <CallWindowProcA>

You'll have to make a copy of these .inc files and modify code like the above like this:

CallWindowProc equ <CallWindowProcW>

Posted on 2006-08-12 22:13:07 by Ultrano
to: JimmyClif & Ultrano
Thanks for help, I will try my best.
Posted on 2006-08-13 00:44:39 by jhkdiy