Results 1 to 13 of 13

Thread: Plugin Framework *Unresolved*

  1. #1

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Lightbulb Plugin Framework *Unresolved*

    I'm going to, TRY to make a plugin framework for my app. The only problem is, i don't know what to do ! I don't know how to use plugins and stuff. I looked on PSCODE but most of the code was stopped with error's and very hard to understand... Could anyone please make a VERY simple example ? I wuld be very glad if you could !

    Regards
    Last edited by vbNeo; Sep 5th, 2002 at 12:32 PM.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    wait.. you want to make a plug in interface for one of your apps? or a plug in for the VB IDE?

  3. #3

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    For an app :)

    I want a plugin interface for my app, you know, with some restrictions and stuff
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    What exactly are you trying to accomplish? Extra functionality that will be available at run time or something else?

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Just in case you are trying to accomplish some extra functionality, you will ahve to look inot Late Binding methods. Also, to cover your ground, you will have to know how to register and unregister COM objects through VB.
    Try this:
    Define a standard method which must be present in the Plugin and which should return a psecific value if needed.

    1) Create a dummy DLL as your plugin dll

    2) Use the following code to create an object of the plugin dll.
    VB Code:
    1. Dim objPlugin as Object
    2. Set Object = CreateObject("AppName.Classname")
    I may have gone wrong in the syntax, so verify it.

    3) Call the method of Plugin which you have defined using the standard Vb syntax. If the method is not present, an error (most probably no 429) will be raised. Otherwise continue with your processing.

  6. #6

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    hmm...

    It's something like that i want... But the main thing i wnat is to make a plugin framework, which means i decide how much the plugins should be able to do, could you please make an example limitating a plugin ? And yes, i want extra functionality in my app, in runtime. I just want to limitate how MUCH extra functionality
    Last edited by vbNeo; Sep 5th, 2002 at 03:06 PM.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I dont think there is much of anything you can do to limit what a plug-in does.. You could in theory create Interfaces which defines functions and methods that the plugin MUST use.. but again it doesnt stop anyone from malicious code if that is what you are guarding against. And I dont think you can create interfaces in VB6 anyway.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    well

    My friend who is working on a project Called SpeedEdit: www.geemark.com
    Has made a plugin framework, he limits the code in some way... Of course i can't ask to have his source . What i want as what he has, just... MUCH simpler

    Edit: Hey Cander... Are you danish ?
    Last edited by vbNeo; Sep 5th, 2002 at 03:23 PM.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I wouldnt call it a framework. All they do is tell you what functions you have to add to your dll. The main app just calls them. Again there is nothing to stop someone from putting in a shell comamnd to delete a harddrive.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Well

    Can you make a simple example doing something like what he has done ? I would be very happy if you could !
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  11. #11
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    That is the problem. It isnt something i can whip together in a short period of time. Takes a little work. Best I can say is go back to PSC and look for VegaCOMM, which is an application I wrote that uses the same theory for plug-ins as SpeedEdit. But it is a big application and might be a bit overwhelming.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  12. #12
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I'm with Cander there really isn't an 'EASY' way to do plugins, but here is one more link to add to your list:
    http://www.vbforums.com/showthread.p...hreadid=189933

  13. #13

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Thanks Guys

    Thanks guys, i'll look into it when i get time
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width