Results 1 to 8 of 8

Thread: Create plugin for VB6 app within VB6?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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?

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: Create plugin for VB6 app within VB6?

    What kind of plugin are you talking about here? What do you need it to do?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    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)

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: Create plugin for VB6 app within VB6?

    please explain how with examples

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  6. #6
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    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

  7. #7
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  8. #8
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    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
  •  



Click Here to Expand Forum to Full Width