As the headline says, just a little experiment with the acknex sdk, c++ and c#
The system works rather easy, you can either access the acknex.dll directly or via a wrapper written in C++. My demo uses the second way:
C++ function:
Code:
extern "C" __declspec(dllexport) void Init(char* cmdline)
{
engine_open(cmdline);
engine_frame();
}
C# interface:
Code:
using System.Runtime.InteropServices;
public class AcknexInterface
{
[DllImport("AcknexInterface.dll")]
internal static extern void Init(String CmdLine);
}
AcknexInterface.dll is the product of the C++ code.
Some functions work very well, others not.