AnsweredAssumed Answered

Automation using C#

Question asked by G40 on Oct 9, 2012
Latest reply on Oct 18, 2012 by G40

If I try and instantiate Visual DSP auotmation objects using C# (VS2008 or VS 2012) with the example below I get these errors:

 

1>R:\data\omg\automation\Builder\Builder\Program.cs(13,50,13,66): error CS1752: Interop type 'VisualDSP.ApplicationClass' cannot be embedded. Use the applicable interface instead.

1>R:\data\omg\automation\Builder\Builder\Program.cs(13,36,13,68): error CS0143: The type 'VisualDSP.ApplicationClass' has no constructors defined

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

What am I doing wrong?

 

using VisualDSP;

namespace Builder

{

    class Program

    {

        static void Main(string[] args)

        {

            IADspApplication dsp = new VisualDSP.ApplicationClass();

           

        }

    }

}

Outcomes