i have following code , once i run my application i get this error
anyone know how i fix this error?
ERROR:
A call to PInvoke function \'testcamera!
Please use Cdecl calling convention for that function. Don't ask me why, it just works.
[DllImport("EDSDK.dll", CallingConvention=CallingConvention.Cdecl)]
public extern static uint EdsCreateEvfImageRef(IntPtr inStreamRef, out IntPtr outEvfImageRef);
[DllImport("EDSDK.dll",CallingConvention=CallingConvention.Cdecl)]
public extern static uint EdsDownloadEvfImage(IntPtr inCameraRef, IntPtr outEvfImageRef);