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