quote:
Originally posted by eSouL
Hi, I'm using VB6. How do I make my plugin use the W functions? Do I just apped all the normal function names with a suffix W?
That highly depends on what API's you use. Not all API's are available as unicode functions. To know if a specific API is available as unicode you need to look it up in the
msdn library.
Furthermore, the unicode equivalents require you to parse text in a different manner. This is because VB6 always converts unicode strings to ansi strings before they are send to these API's (unicode or not). Thus in order to send unicode text you need to parse them as pointers. Or you must convert the unicode strings first to unicode (this may sound strange, but it simply means fooling VB6).
Take a look at my posts about sending a PSM to MSN Messenger, they deal with unicode and the common errors people have with them:
http://forums.msnfanatic.com/index.php?showtopic=11226
quote:
Originally posted by eSouL
I also can't seem to find the option to compile to Unicode-aware. Thanks for your help!
VB6 is always unicode internally. You don't need to set anything.
But note that VB6 does not support unicode externaly, this means it will always show ansi strings in its controls. Getting around that is far from easy (unless you use the not-distributable Forms2.0 library, as this contains unicode aware controls)...
All in all it is very difficult to explain everything as there is much to know about all this.
http://www.oreilly.com/catalog/win32api/chapter/ch06.html
^^ this is mandatory to understand completely and in detail before you start working with unicode in VB6
another link which deals with some stuff:
http://support.microsoft.com/default.aspx?scid=kb;en-us;205277