|
-
Oct 4th, 2010, 10:32 AM
#1
Thread Starter
Addicted Member
[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;
-
Oct 4th, 2010, 05:53 PM
#2
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
-
Oct 5th, 2010, 07:46 AM
#3
Thread Starter
Addicted Member
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;
-
Oct 5th, 2010, 11:42 AM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|