|
-
Sep 5th, 2002, 12:04 PM
#1
Thread Starter
Frenzied Member
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.
-
Sep 5th, 2002, 12:06 PM
#2
wait.. you want to make a plug in interface for one of your apps? or a plug in for the VB IDE?
-
Sep 5th, 2002, 12:08 PM
#3
Thread Starter
Frenzied Member
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.
-
Sep 5th, 2002, 02:39 PM
#4
PowerPoster
What exactly are you trying to accomplish? Extra functionality that will be available at run time or something else?
-
Sep 5th, 2002, 02:55 PM
#5
PowerPoster
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:
Dim objPlugin as Object
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.
-
Sep 5th, 2002, 03:02 PM
#6
Thread Starter
Frenzied Member
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.
-
Sep 5th, 2002, 03:13 PM
#7
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.
-
Sep 5th, 2002, 03:16 PM
#8
Thread Starter
Frenzied Member
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.
-
Sep 5th, 2002, 03:24 PM
#9
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.
-
Sep 5th, 2002, 03:30 PM
#10
Thread Starter
Frenzied Member
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.
-
Sep 5th, 2002, 03:38 PM
#11
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.
-
Sep 5th, 2002, 06:14 PM
#12
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
-
Sep 6th, 2002, 12:10 AM
#13
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|