INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Creating a plugin in VB  (Read 1528 times)

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Creating a plugin in VB
« on: April 14, 2005, 01:46:11 pm »

I'm being a bit dim... it's a while since I looked at this, but I know it's not that complicated, so hopefully someone will be feeling helpful :-)

I wrote an EXE quite some time ago in VB which hooks into MC using the SDK.

There were reasons why I did it as an EXE, but I don't think those apply any more, and I'd much rather have it as a plugin.

I presume I need to compile it in VB as an ActiveX DLL instead, and register it, filling out all the information in the plugins bit of the registry that MC looks at.

But what functions does MC actually call in the DLL?
I presume it doesn't call Sub Main, so is there a standard DLL entry point that it will call?

I couldn't see it documented anywhere on here....

Thanks,
Rob
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Creating a plugin in VB
« Reply #1 on: April 14, 2005, 02:08:20 pm »

there is a visual basic 6.0 code sample on the Developers page

VB6.0 is OCX and VB Net would be a dll (i have never made a VB net program due to a few reasons. 1. being no J river sample, 2. being no J river directions)

I am not the brightest bulb in the box
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Re: Creating a plugin in VB
« Reply #2 on: April 14, 2005, 02:27:28 pm »

Doh! Yeah, thanks.

I knew I was being stupid.

I did download that ages ago and look through it. As I say, it's been a while :-)

In my defence, I think I was distracted by the new server plugins in MC11, which mine probably ought to be, but it'll have to work as an interface plugin for now, I think.

Unless we get documentation on creating server plugins some time soon :-)

Rob
Logged
Pages: [1]   Go Up