Just a code snippet that should allow you to open the engine through Acknex.DLL in a C# application
.
Of course, this does not get the ENGINE_VARS struct yet, but that's easy to add
.
Code:
[DllImport("acknex.dll")]
static extern void engine_open(char[] commandline,int callback);
public MyA6App()
{
InitializeComponent();
engine_open("level.wmb".ToCharArray(), 0);
}
The same proceedure for using Acknex.dll goes for the c# app, you've gotta run WED.EXE -p [wdl] [exePath]
Ooooh boy... *cracks fingers* I might actually get something done with this engine again. C++ was just too clumsy of an interface with the engine... I'm a fan of being able to use Windows.Forms inline with A6
.
-Rhuarc