//...maybe this impl. can help [DllImport("./MXFWrapperMarvel.dll", EntryPoint = "add")]static extern int APIENTRY add(int a, int b);//...