Results 1 to 4 of 4

Thread: [RESOLVED] Plugin/Mod in program

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    176

    Resolved [RESOLVED] Plugin/Mod in program

    Hello

    For many Java games/programs I use, you can download plugins/mods.

    Now I'm wondering if this is possible in VB?
    PHP Code:
    $im_addicted_to_programming true

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Plugin/Mod in program

    The .NET Framework does incorporate plugin functionality.

    http://social.msdn.microsoft.com/Sea...tem.addin&ac=8

    It was a late inclusion though, so many developers have implemented their own system based on an interface. You can define your own IPlugin interface in a library and then both your application and any plugin developers library can reference that. At run time, your application looks in one or more specific folders and uses Reflection to load and interrogate the DLLs found there to detect all types that implement your IPlugin interface.

    http://www.google.com.au/search?q=pl...ient=firefox-a
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    176

    Re: Plugin/Mod in program

    Lets just be clear that we talk about the same thing here
    Lets say I have a game, in Java other could make "plugins" and mods to the game. This is not possible in VB?
    How about C#/C++?
    PHP Code:
    $im_addicted_to_programming true

  4. #4
    Fanatic Member
    Join Date
    Sep 2009
    Location
    Lakewood, Colorado
    Posts
    621

    Re: Plugin/Mod in program

    Yes, you can write plugins. In VS2010 .NET 4.0 you would use the Managed Extensibility Framework . See: http://mef.codeplex.com/ for information. For earlier version, you have more work to do, but it still is possible using System.Reflection to load assemblies at runtime (there are examples online for this, too - this is non-CLS compliant).

    Dick
    Richard Grier, Consultant, Hard & Software
    Microsoft MVP (Visual Basic)

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