|
-
Feb 27th, 2013, 08:28 AM
#1
Thread Starter
PowerPoster
Create plugin for VB6 app within VB6?
In VB6, is there a way you can create a custom plugin for your VB6 app using VB6 to create that plugin?
if so - how?
-
Feb 27th, 2013, 09:29 AM
#2
Re: Create plugin for VB6 app within VB6?
What kind of plugin are you talking about here? What do you need it to do?
-
Feb 27th, 2013, 09:35 AM
#3
Thread Starter
PowerPoster
Re: Create plugin for VB6 app within VB6?
just a custom plugin for my custom application.
so lets say if you made a VB6 app....
now you want to make a plugin for it where others can create their own thing and your app should be able to pickup the plugin and run it/get values back from it etc.... - this is what I am referring to in the VB6 land
-
Feb 27th, 2013, 09:41 AM
#4
Re: Create plugin for VB6 app within VB6?
Since VB can do just about anything, there's no reason it can't achieve what you're asking.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Feb 27th, 2013, 09:56 AM
#5
Thread Starter
PowerPoster
Re: Create plugin for VB6 app within VB6?
please explain how with examples
-
Feb 27th, 2013, 11:01 AM
#6
Banned
Re: Create plugin for VB6 app within VB6?
i like to know also a basic example will give me 50 idea on my own but need a kick start first
-
Feb 27th, 2013, 12:08 PM
#7
Re: Create plugin for VB6 app within VB6?
"Plug ins" normally perform a fairly fixed range of functions on a fixed set of data.
Say you have written an image processing program. You might define a plug-in interface to allow new image file formats to be added. You might have another interface to allow image "filters" to be added to do different things to bitmaps.
To accomplish this you need to define those abstract interfaces. Then when writing a plug-in you implement those interfaces in concrete classes in DLLs.
At runtime your program can use a settings file, the registry, etc. to hold the names, descriptions, ProgIDs, etc. of your concrete classes. You can use this info to build something like a filters menu. The user picks a filter to apply from the menu and you call CreateObject() passing the progID to create an instance you can call using methods defined in your interface.
Look in the VB6 manuals. The "Programming With Objects" section has a chapter or two on Polymorphism, which covers pretty much this very topic. Not explicitly, but you can see it between the lines there.
-
Feb 27th, 2013, 06:39 PM
#8
Re: Create plugin for VB6 app within VB6?
It depends how deep you want to go with your plug ins. You could make a simple text editor for example, but with a plug in it would make the text editor correct your mistakes. You will need to make your application to be able to communicate with that plug in. The user which makes the plug in will need to know vb6 and/or know how to communicate with your program. You might need to document all your plug in functions, for example getting the text/words from your text editor. Where and how will you get the data to go to that plug in? Well you could use an external file or maybe use some api to get your text editor's textbox text and then set the corrected words back into the program.
Its up to you to decide all this since you didnt give us any information on what you want! How can we give you examples?
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
|