What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » DisplayToastW bug?

DisplayToastW bug?
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. Huh?  DisplayToastW bug?
I've just converted Phoenix to Unicode (v2 will support all them fancy Eastern characters now), but the toasts are broken. While eventually I will be doing my own, I'm using Plus's DisplayToastW in the meantime.

Thing is, I can pass any WCHAR* to it I like, and no matter whether it's a BSTR (BSTR = OLECHAR* = WCHAR*), WCHAR*, or L"Text", it refuses to display more than one character of the string.
[Image: spartaafk.png]
04-23-2005 01:41 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: DisplayToastW bug?
DisplayToastW has always been working fine (for Hopper)...there might be something wrong with your string manipulation :)
04-23-2005 02:23 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. RE: DisplayToastW bug?
It happenes even when I pass a string like L"Test". If I pass a string like that to MessageBoxW, it works fine, but it won't for DisplayToastW.
[Image: spartaafk.png]
04-23-2005 02:41 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: DisplayToastW bug?
That sounds strange :S

Well I forgot to say that I've modified DisplayToastW a little... I changed

code:
    UINT nMsg = RegisterWindowMessage("MessengerPlus_DisplayToast");


to

code:
    UINT nMsg = RegisterWindowMessageW(L"MessengerPlus_DisplayToast");


I don't really think it should correct your problem, but why not give it a try? :)
04-23-2005 03:43 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. RE: DisplayToastW bug?
* RaceProUK :bow: W
I should have known it'd be as simple as that :)

Note to Patchou: Ws and Ls help with Unicode ;)

Update: Nope, didn't work.
Doesn't help I haven't got Internet at the moment (using the Hall's computer suite is no substitute).Internet back for now :)

This post was edited on 04-24-2005 at 03:30 PM by RaceProUK.
[Image: spartaafk.png]
04-23-2005 04:40 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. RE: DisplayToastW bug?
I think I now hold the record for looking in the wrong place the whole time. I've found what's wrong with my use of DisplayToastW.
I separated out the code in MPPluginHeader.h among my own header files for more logical organisation of the code. Initially, I wasn't worrying about Unicode, but then switched to it.

Turns out the lParam of 'MessengerPlus_DisplayToast' is FALSE for ANSI, TRUE for Unicode.

:wall:
:wall:
:wall:
:wall:
:wall:
:wall:
:wall:
:wall:
:wall:
:wall:
[Image: spartaafk.png]
06-02-2005 01:39 PM
Profile PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: DisplayToastW bug?
lol :p. As for RegisterWindowMessageW(), it's not needed as the string parameter that is sent to this function is always the same and not unicode: "MessengerPlus_DisplayToast" :).
[Image: signature2.gif]
06-05-2005 08:59 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