What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Text in Unicode

Text in Unicode
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Text in Unicode
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

This post was edited on 10-10-2005 at 08:57 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-10-2005 08:54 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Text in Unicode - by eSouL on 10-07-2005 at 07:33 AM
RE: Text in Unicode - by J-Thread on 10-07-2005 at 08:10 AM
RE: Text in Unicode - by eSouL on 10-07-2005 at 08:26 AM
RE: Text in Unicode - by CookieRevised on 10-07-2005 at 11:54 AM
RE: Text in Unicode - by Mnjul on 10-07-2005 at 12:29 PM
RE: Text in Unicode - by eSouL on 10-10-2005 at 02:27 AM
RE: Text in Unicode - by CookieRevised on 10-10-2005 at 08:54 AM
RE: Text in Unicode - by eSouL on 10-10-2005 at 03:34 PM
RE: Text in Unicode - by CookieRevised on 10-10-2005 at 10:34 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On