Compiling parts of script into DLL, problem with

lnetzel wrote on 7/16/2003, 4:52 AM
I have made a bunch of scripts controlled by an interface (Windows.Forms). I want to put as much of the scipt and form as possible in an dll.

I do this in Visual Studio and I use VB.NET

Since I use VB I need to use the constant "VegasApp" to work with current project and that little Word is alwats Underlined and "not defined" in Visual Studio and since I can't compile until all those "errors" are gone, how do I make Visual Studio recognize "VegasApp"?

Where is VegasAPP declared? I understand it the type of "SonicFoundry.Vegas.Vegas"


Thanx/
Lars

Comments

SonyPJM wrote on 7/21/2003, 1:43 PM
You cannot put everything in a dll but you can put almost everything in there. You still need a "wrapper" script to call into your dll. Your wrapper script should pass the VegasApp global variable to your dll as an argument to a (static) method or set a public property in your dll to VegasApp. Here is an example wrapper VB script:



imports System.Windows.Forms
imports SonicFoundry.Vegas
imports MyAssembly

Public Module MainModule
Sub Main
MyAssembly.MyClass.Run(VegasApp)
End Sub
End Module


lnetzel wrote on 7/22/2003, 2:10 AM
Thank you! I thought about that but I wanted to see what you had too say first!

/Lars