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

Pages: (2): « First « 1 [ 2 ] Last »
Change Displaypicture
Author: Message:
Tobiaz
Full Member
***

Avatar

Posts: 103
Reputation: 5
67 / Male / –
Joined: Aug 2005
Status: Away
O.P. RE: Change Displaypicture
Hi... i'm sorry. It's me again :S
Now I made it like you have posted. I updated the "Initialize" Function and used the "ChangeDisplayPicture" Function. So. Thank you again. But... Everytime i call the ChangeDisplayPicture Function, the Error Number 91 appears. (Sorry, I don't know the Errordescreption in English :S)

I'm loading the Path from a Reg-Setting. But I don't think, this is the Error...

Can you help me again?

Thank you
11-05-2005 09:30 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Change Displaypicture
quote:
Originally posted by Tobiaz
Hi... i'm sorry. It's me again :S
Now I made it like you have posted. I updated the "Initialize" Function and used the "ChangeDisplayPicture" Function. So. Thank you again. But... Everytime i call the ChangeDisplayPicture Function, the Error Number 91 appears. (Sorry, I don't know the Errordescreption in English :S)

I'm loading the Path from a Reg-Setting. But I don't think, this is the Error...

Can you help me again?

Thank you
Did you make sure your Initialize Function looks like this:

quote:
Originally posted by J-Thread
Just a note, but your initialize function should then be:
code:
Private objMessengerAPI As Object
Private Const
M_ContactProperty_DP As Long = 2

Option Explicit

Public Function
Initialize(ByVal nVersion As Long, _
                           ByVal sUserEmail As String, _
                           ByVal oMessenger As Object) _
                           As Boolean
    Initialize = True
    Set
objMessengerAPI = oMessenger
End Function

11-05-2005 03:19 PM
Profile E-Mail PM Find Quote Report
Tobiaz
Full Member
***

Avatar

Posts: 103
Reputation: 5
67 / Male / –
Joined: Aug 2005
Status: Away
O.P. Huh?  RE: Change Displaypicture
Yes... it looks exactly like this. But the Error nr. 91 appears everytime i use the changeDisplayPicture function...
11-05-2005 04:43 PM
Profile E-Mail PM Find Quote Report
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: Change Displaypicture
But WHAT is the error 91? We don't know all the error numbers by heart...

I doesn't matter if it is in another language (german?), there may be somebody else who can translate it...
11-05-2005 10:39 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Change Displaypicture
Oh it is Object or With variable not set.

Try changing
code:
Private objMessengerAPI As Object
Private Const
M_ContactProperty_DP As Long = 2

To:
code:
Public objMessengerAPI As Object
Public Const
M_ContactProperty_DP As Long = 2

This post was edited on 11-05-2005 at 10:58 PM by matty.
11-05-2005 10:56 PM
Profile E-Mail PM Find Quote Report
Tobiaz
Full Member
***

Avatar

Posts: 103
Reputation: 5
67 / Male / –
Joined: Aug 2005
Status: Away
O.P. RE: Change Displaypicture
Hm... With "Public" it doesn't work too... :(

Is there a way to call the "Initialize" function? When I have the Source in the "Initialize" function it works...
Maybe I can uninitialize my plugin and then when I initialize it again, the function will be call... !? (Maybe :D:P;))

Greeeeez
11-06-2005 08:34 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Change Displaypicture
You want to post the source code you have (or put it on a web server and PM me the link) and I will take a look at it.
11-06-2005 09:17 AM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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