What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » What am I doing wrong?

What am I doing wrong?
Author: Message:
sena
Junior Member
**

Avatar
mEo Rocks!

Posts: 23
35 / Male / –
Joined: May 2005
O.P. Huh?  What am I doing wrong?
Hi,

I am trying to make a plugin for Messenger Plus, but before I start developing it, I want to make sure I can successfully install it first, so I can test it.

I am using VB6.

This is my "Installer".  I am using the DLL that comes in the Messenger Plus! Plugins Documentation, Visual Basic 6 Samples section (MPPluginVB.dll)

Form 1:
code:
Private Sub Form_Load()
FileSystem.FileCopy App.Path & "\MPPluginVB.dll", GetPluginDirectory & "\MPPluginVB.dll"
MsgBox InstallPlugin("MPPluginVB.dll", "MPPluginVB.Sample")
ReloadPlus
End Sub


Module:
code:
Public Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long
Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Const HWND_BROADCAST = &HFFFF&

Public Function GetPluginDirectory()
Dim Temp As String
Temp = GetKeyValue(HKEY_LOCAL_MACHINE, "SOFTWARE\Patchou\MsgPlus2", "PluginDir")
If Temp = "" Then Temp = GetKeyValue(HKEY_CURRENT_USER, "SOFTWARE\Patchou\MsgPlus2", "PluginDir")
If Temp = "" Then Temp = "**ERROR** - Plugin Directory Not Found"
GetPluginDirectory = Temp
End Function

Public Function InstallPlugin(FileName As String, VBWord As String) As Boolean
UpdateKey HKEY_CURRENT_USER, "SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins", FileName, VBWord
InstallPlugin = UpdateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins", FileName, VBWord)
End Function

Public Function ReloadPlus()
Dim nMsg As Long
nMsg = RegisterWindowMessage("MessengerPlus_PluginChange")
PostMessage HWND_BROADCAST, nMsg, 0, 0
End Function


I have used the "RegAccess.bas" file that comes with VB6 to access the registry.

It doesn't work!!! What have I done wrong?!
[Image: mEo3.jpg]
10-01-2005 11:21 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
What am I doing wrong? - by sena on 10-01-2005 at 11:21 AM
RE: What am I doing wrong? - by Plik on 10-01-2005 at 11:26 AM
RE: What am I doing wrong? - by sena on 10-01-2005 at 02:33 PM
RE: What am I doing wrong? - by matty on 10-01-2005 at 02:47 PM
RE: What am I doing wrong? - by sena on 10-01-2005 at 02:49 PM
RE: What am I doing wrong? - by J-Thread on 10-01-2005 at 03:10 PM
RE: What am I doing wrong? - by sena on 10-01-2005 at 03:12 PM
RE: What am I doing wrong? - by matty on 10-01-2005 at 03:17 PM
RE: What am I doing wrong? - by sena on 10-01-2005 at 03:21 PM
RE: What am I doing wrong? - by Stigmata on 10-01-2005 at 03:23 PM
RE: What am I doing wrong? - by sena on 10-01-2005 at 03:33 PM
RE: What am I doing wrong? - by Stigmata on 10-01-2005 at 04:09 PM
RE: What am I doing wrong? - by sena on 10-01-2005 at 04:54 PM
RE: What am I doing wrong? - by matty on 10-03-2005 at 05:49 PM
RE: What am I doing wrong? - by sena on 10-03-2005 at 06:54 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