I have written a VC++ dll. The declaration for one of the methods in the dll is as follows:
extern \"C\" _declspec(dllexport) void startIt(int number) {
Could you be missing CallingConvention=CallingConvention.Cdecl in your DllImport attribute?
CallingConvention=CallingConvention.Cdecl
DllImport