use Parameters bei DLLImport from C#
<p>I have a problem to use parameters from a DLL which was built in Labview.</p>

<p>My whole Code is:</p>

<pre><code>namespace ConsoleApplication4
{
    public class Program
    {

        //DLL einbinden
        [DllImport(@"C:\DLL_Uebergabe\SharedLib.dll")]
        public static extern void Unbenannt2(out double Amplitude, out double Reqlength);


        public void Main(string[] args)
        {

            //Einbinden der .Net Interop-Assembly
            //double Amp;
            //Result Amplitude = new Result();
            //Amp = Amplitude.GetResult();
            //Console.WriteLine("Amplitude ist demzufolge: {0}", Amp);

            double Amplitude;
            double Reqlength;
            this.Unbenannt2(out Amplitude, out Reqlength);
            Console.WriteLine("Amplitude: {0} und Reqlength: {1}", Amplitude,Reqlength);

        }
    }
</code></pre>

<p>}</p>

<p>My Compiler always said:</p>

<p>"cannot be accessed with an instance reference, qualified it with a type name instead."</p>

<p>This error raises at code line: </p>

<p>this.Unbenannt2(out Amplitude, out Reqlength); </p>

<p>Can you please tell me the mistake? Thank you for your help.</p>
