Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualRobTheBloke

Posted 23 September 2012 - 06:33 PM

This is fairly old now (circa VC2005), but it might give you a few clues.....

http://nccastaff.bou...ginExample2.zip

Also worth paying attention to the App/bin/scripts folder. You may find that some of the .NET classes used have been deprecated in favour of newer ones (I've not used .NET for a few years)

This example simply provides a core API dll (used by the App). The DLL's and scripts link against the API dll, and all communication goes via that lib. Technically speaking it doesn't really provide scripting support as such. It actually just compiles and links the source files into a DLL in memory. In effect, the scripts are identical to the plugin source. It may be ok for some people, although I guess a lot of people would prefer to have a much more immediate interpretted language. Depends on your needs I guess, but it's one relatively simple solution.

\edit

Just tried compiling it under VC2012. The CppPlugin doesn't work off the bat, because it gets built with a newer version of .NET. If you change the .NET framework used for the other plugins and the app, to the latest .Net framework (4.5 under VC2012), it works fine (albeit with deprecation warnings in the build). If you don't have VB or C++ installed, just nuke the other DLL's and scripts.

#2RobTheBloke

Posted 23 September 2012 - 06:26 PM

This is fairly old now (circa VC2005), but it might give you a few clues.....

http://nccastaff.bou...ginExample2.zip

Also worth paying attention to the App/bin/scripts folder. You may find that some of the .NET classes used have been deprecated in favour of newer ones (I've not used .NET for a few years)

\edit

Just tried compiling it under VC2012. The CppPlugin doesn't work off the bat, because it gets built with a newer version of .NET. If you change the .NET framework used for the other plugins and the app, to the latest .Net framework (4.5 under VC2012), it works fine (albeit with deprecation warnings in the build)

#1RobTheBloke

Posted 23 September 2012 - 06:08 PM

This is fairly old now (circa VC2005), but it might give you a few clues.....

http://nccastaff.bournemouth.ac.uk/jmacey/RobTheBloke/www/CSPluginExample2.zip

Also worth paying attention to the App/bin/scripts folder. You may find that some of the .NET classes used have been deprecated in favour of newer ones (I've not used .NET for a few years)

PARTNERS