G
Guest
Hi,
I am trying to P/Invoke a video coder .DLL in my C# application for Pocket Pc.
I wrote the regular P/Invoke adaptation for the methods of the .DLL.
When I debug the application, I get the exception
'System.MissingMethodException', when I call any method from this DLL.
This is my first P/Invoke, I don't know what to do in this situation... how
to debug?
I checked with DLL Viewer that those methods are "external" in the DLL, this
point is fine.
I have a doubt if the DLL is compiled for pocket pc, how can I check ?
Thank you for your support!
Lionel Reyero
my method call which generate the exception:
Encoder.MSFCEnc_Init(this.width, this.height);
my P/invoke code in C#
[DllImport("MSFCEnc.dll")] public static extern UInt32 MSFCEnc_Init(int cx,
int cy);
the method in C is :
MSFCENC_API HRESULT MSFCEnc_Init(int cx, int cy);
I am trying to P/Invoke a video coder .DLL in my C# application for Pocket Pc.
I wrote the regular P/Invoke adaptation for the methods of the .DLL.
When I debug the application, I get the exception
'System.MissingMethodException', when I call any method from this DLL.
This is my first P/Invoke, I don't know what to do in this situation... how
to debug?
I checked with DLL Viewer that those methods are "external" in the DLL, this
point is fine.
I have a doubt if the DLL is compiled for pocket pc, how can I check ?
Thank you for your support!
Lionel Reyero
my method call which generate the exception:
Encoder.MSFCEnc_Init(this.width, this.height);
my P/invoke code in C#
[DllImport("MSFCEnc.dll")] public static extern UInt32 MSFCEnc_Init(int cx,
int cy);
the method in C is :
MSFCENC_API HRESULT MSFCEnc_Init(int cx, int cy);