Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualSimply Jarvis

Posted 11 October 2013 - 02:12 AM

Thanks for the reply "PhillipHamlyn" but I can already load the classes and such within the plugins into my program so there is no need for external libraries, I simply want some input regarding how I should have the structure.

 

Example:

API.dll references Program.exe

Default.dll references API.dll

Program.exe loads all 'Plugins/*.dll' and pulls the classes from the plugins storing there types.

Program.exe then when in need of using the plugin types does "IMyPluginBaseType TheCreatedClass = (IMyPluginBaseType) Assembly.CreateInstance( Type.FullName );"

I store the data as such, Dictionary<String,Type>;  The string being a unique id generated when the type is parsed from the dll.

 

Currently I have Program.exe and Default.dll referencing API.dll as it's the easier meens of doing things.


#2Simply Jarvis

Posted 11 October 2013 - 02:01 AM

Thanks for the reply "PhillipHamlyn" but I can already load the classes and such within the plugins into my program so there is no need for external libraries, I simply want some input regarding how I should have the structure.

 

Example:

API.dll references Program.exe

Default.dll references API.dll

Program.exe loads all 'Plugins/*.dll' and pulls the classes from the plugins storing there types.

Program.exe then when in need of using the plugin types does "IMyPluginBaseType TheCreatedClass = (IMyPluginBaseType) Assembly.CreateInstance( Type.FullName );"

I store the data as such, Dictionary<String,Type>;  The string being a unique id generated when the type is parsed from the dll.


#1Simply Jarvis

Posted 11 October 2013 - 02:01 AM

Thats for the reply "PhillipHamlyn" but I can already load the classes and such within the plugins into my program so there is no need for external libraries, I simply want some input regarding how I should have the structure.

 

Example:

API.dll references Program.exe

Default.dll references API.dll

Program.exe loads all 'Plugins/*.dll' and pulls the classes from the plugins storing there types.

Program.exe then when in need of using the plugin types does "IMyPluginBaseType TheCreatedClass = (IMyPluginBaseType) Assembly.CreateInstance( Type.FullName );"

I store the data as such, Dictionary<String,Type>;  The string being a unique id generated when the type is parsed from the dll.


PARTNERS