2) DotNet_LoadCScode (assembly error).au3 416 B

12345678910111213
  1. #include "..\..\Includes\DotNet.au3"
  2. Opt( "MustDeclareVars", 1 )
  3. Example()
  4. Func Example()
  5. Local $oCode = DotNet_LoadCScode( FileRead( "CodeCS.cs" ) ) ; Missing "System.Windows.Forms.dll" assembly
  6. If @error Then Return ConsoleWrite( "DotNet_LoadCScode ERR" & @CRLF )
  7. ConsoleWrite( "DotNet_LoadCScode OK" & @CRLF )
  8. Local $oFoo = DotNet_CreateObject( $oCode, "Foo" )
  9. If IsObj( $oFoo ) Then $oFoo.Test()
  10. EndFunc