I always get this error when trying to compile.
I'm reather new to C# (only did the tutorials that come with it as well as some online tuts), so the error message doesn't really help me.

Unfortunally it's also in german
Quote:
PInvokeStackImbalance wurde erkannt.
Message: Ein Aufruf an die PInvoke-Funktion "AcknexTest!AcknexWrapper.Native.NativeEngFun::engine_open" hat das Gleichgewicht des Stapels gestört. Wahrscheinlich stimmt die verwaltete PInvoke-Signatur nicht mit der nicht verwalteten Zielsignatur überein. Überprüfen Sie, ob die Aufrufkonvention und die Parameter der PInvoke-Signatur mit der nicht verwalteten Zielsignatur übereinstimmen.


my code:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AcknexWrapper;

namespace AcknexTest
{
    class Program
    {
        static void Main(string[] args)
        {
            EngFun.engine_open(null);
            EngFun.error("Hello World!");
            Scheduler.StartScheduler(null);
        }
    }
}



Also correctly linked to the AcknexWrapper folder, and .dll seems to be created by WED (at least acknex.dll gets copied to the debug folder and a wed console window pops up everytime i compile)

I'm using Visual C# Express 2010 at the moment, but could switch to Visual Studio 2010 Ultimate if really needed (don't like the 7GB install size though...).

Would be nice if someone can help me out here, as i'm trying to create some editors for shade-c and am sick of WinAPI wink


Shade-C EVO Lite-C Shader Framework