Ben,
One malingering issue:
MessageBoxIndirect changes it declaration in VC7 in a cosmetic way that required removing
an LP from the comment. I'm waiting to see if someone with VC6 can still run the
script with the LP removed.
-----Original Message-----
From: Ben Wing [mailto:ben@xemacs.org]
Sent: Sunday, November 26, 2006 7:10 AM
To: Benson Margulies
Cc: Vin Shelton; Stephen J. Turnbull; XEmacs-Beta(a)xemacs.org
Subject: Re: Full Unicode Pathnames
Benson Margulies wrote:
Could someone point me at an example of the cliché for converting
from an IByte* to UTF-16 for transmission to the Win32 'W' API?
i'm sure this is documented in the internals manual.
but for calling a pathname function, use PATHNAME_CONVERT_OUT; see
mswindows_access (const Ibyte *path, int mode) in win32.c. note that
the qxe() wrapper functions take Extbyte * in place of LPTCHAR or LPCHAR
or LPWCHAR or any such things.
for more general strings, use C_STRING_TO_TSTR.
conversion the other way uses TSTR_TO_C_STRING or PATHNAME_CONVERT_IN.
note that all of these macros use alloca() to record the temporary space
for the string onto to stack, so no need to free (but values disappear
after the function returns).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta