Shoutbox

Visual Basic 6 - I need some help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Visual Basic 6 - I need some help (/showthread.php?tid=23276)

Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 03:50 PM

Hey, I'm new here on the forum, and also new when it comes to Visual Basic 6. Well new... That's a big word. Let's say I'm new in programming plugins that work on the !Plus ( which btw is great (Y) ). I downloaded the documentation on the !Plus site to help me creat a plugin. Now I was looking at the code and wonderd. So I just clicked the make button and it made the .dll file ( so I didn't change the coding ). I 've putted the .dll in the !Plus > Plugin dir. But when I startup !Plus the plugin won't show up. I've tried restarting !Plus, and restarting my PC. But it won't showup in de menu ( and in the code there was a piece of coding that normaly would let it to show on the menu ). Can somebody help me with this. Because the problem is realy bugging me :S. Thanks a lot ( Ow please remember I'm Newbie on this section of programming, so try to explain as easy as posible :D )

Sazologie


RE: Visual Basic 6 - I need some help by CookieRevised on 04-03-2004 at 03:58 PM

Did you also read the readme.txt that comes with the examples:

quote:
The files MPPluginConst.bas and MPPluginDef.cls contain the information you need to create a plugin in Visual Basic. Include the two files in your project and create a new class for your plugin based on MPPluginDef. Remember that an extra installation step is needed when installing Visual Basic pluggins (see below).
quote:
When installing a Visual Basic plugin, you are required to create a special value in the registry to let Messenger Plus! know that it has to load your DLL. Placing it in the Plugins directory will not be enough. Here is the value you have to create:
  Key: HKEY_LOCAL_MACHINE\SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins
  Value Name: any name you want to identify your plugin
  Value data: VB object identifier (ProgID)

The object identifier is the name of your project, a dot and the
name of your class. For example, the identifier for the VB sample
distributed in this API package is "MPPlugin.Sample"
.


Also, take a look at this excellent plugin tutorial made by RaceProUK: http://www.geocities.com/raceprouk/msn/plugins.htm (Scroll down the page to get the PDF and samples)


I hope these things helped...
RE: Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 04:11 PM

Thanks I'll try this at once


RE: Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 04:15 PM

Maybe a some kind stupid question...
But like I told befor I'm new... So
How do you created a registery file.... :$


RE: Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 07:02 PM

Ow btw Cookie,
I have the dutch version of !Plus
and I looked at the About. When
I saw that you helped to translate it
into dutch. So my guess is that your
main language is dutch. If so that could
come in handy because I'm from belgium:$
If not, thanks any way :)


RE: Visual Basic 6 - I need some help by Choli on 04-03-2004 at 07:28 PM

quote:
Originally posted by Sazologie
I'm new here on the forum
welcome :wave:
quote:
Originally posted by Sazologie
How do you created a registery file....
In the VB example plugin there's a registry file: install.reg. Edit it (it's a plain test file, so you can open it with notepad) and modify it as you want.

If you're only testing you may want to modify the registry yourself, without any file.
[*]go to start > run
[*]type regedit and click ok
[*]navigate at the left until you find the secction HKEY_LOCAL_MACHINE\SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins
[*]at the right, right click and create a new key as you can read in Cookie's post.
quote:
Originally posted by Sazologie
!Plus
Plus! ;)
RE: Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 08:04 PM

Thanks you guys are helping a lot :D
Hum where can I get that installer maker?
Btw I tried it with the Register file and still my plugin
won't come into that damn menu.
Thanks for wishing me welcome, and sorry for that
Plus! fault :)


RE: Visual Basic 6 - I need some help by Sazologie on 04-03-2004 at 08:23 PM

Btw I'm so soo sooo sorry that I got to bug you with ( forr you guyz ) lame question, but I can't figure out this plugin thing... It seems easy but its hard for me :s


RE: RE: Visual Basic 6 - I need some help by RichGuk on 04-04-2004 at 07:56 AM

quote:
Originally posted by Sazologie
Btw I tried it with the Register file and still my plugin
won't come into that damn menu.


I'm also fairly new to programming, but have you built up your menu in the GetPublishCommandInfo function? As I assume this is where the menu is created from?

code:
    '// Parameters for GetPublishCommandInfo():                          //
    '//   * nCommandIdx: a number between 1 and nCommandCount            //
    '//     representing the index of the command who's info is going to //
    '//     be retrieved.                                                //
    '//   * sName: name you want to be displayed for the command in the  //
    '//     Plugins menu.                                                //
    '//   * sValue: command string. Do NOT include "/" at the beginning  //
    '//     of the command. Example: "xping".                            //
    '//   * sHelp: optional help you want to be displayed when the user  //
    '//     selects the command from the Plugins menu. This is useful    //
    '//     only when the command accepts arguments.                     //

RE: Visual Basic 6 - I need some help by Mike on 04-04-2004 at 08:47 AM

Well...Try using DJMystic's install maker like blasphemer said.
I made a tool which will modify DJMystic's info files :)
Get it here : http://shoutbox.menthix.net/showthread.php?tid=23191
Oh!The installer file comes there too!


RE: Visual Basic 6 - I need some help by Sazologie on 04-04-2004 at 04:24 PM

Thanks,
Yes the menu in the documenctairy was already
build up.. I think ^o) Yeah it was...
I've tried again and again. I'm going to try it now
with the installer. Btw Big cheers for the URL :)


RE: Visual Basic 6 - I need some help by Sazologie on 04-05-2004 at 09:38 PM

:d
Hey all of you that helped me,
I'm glad to say that it finaly worked...!
I've got my plugin working in the menu!
I'm now trying to play around with the code
so I can add some stuuf extra to the plugin.
Suggestions or Codes could be helpful :D
Thank alot any way!
Big cheers (b)(b)(b)(b)