What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » Messenger API in C++

Messenger API in C++
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. Messenger API in C++
I'm currently writing a nickname saver in C++ (on request from dakillerspyder), but I'm having trouble with Messenger's get_MyFriendlyName() method. The method takes a single argument, a BSTR*.

here is the code I'm currently using:
code:
char* nick;
    BSTR nickTemp;
    hMessenger->get_MyFriendlyName(&nickTemp);
    nick = (char*)nickTemp;
This successfully gets me the first character, but only the first character. How do I get the rest of the nickname?

UPDATE: Found the problem (bloody Unicode!)

UPDATE 2: Fixed! I wrote my own conversion routine.

This post was edited on 07-04-2004 at 03:30 PM by RaceProUK.
[Image: spartaafk.png]
07-04-2004 02:45 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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