W
wc
I'm trying to develop a window from application on C#, which require some
funtions from a COM DLL. So, I import the dll by using
System.Runtime.Interopservices.DllImport like this,
[DllImport("C:\\Program Files
(x86)\\ZIOSOFT\\Ziostation\\bin\\AxZpalKicker.dll")]
unsafe public static extern bool CheckZpal(byte * isrunning);
However, I'm getting a System.BadImageFormatException (HRESULT: 0x8007000B)
when trying to call CheckZpal() in one of the method...
The function declaration for CheckZpal in the COM interface is
STDMETHOD() IZpalKicker::CheckZpal ( BYTE * exist );
Can anyone advice what is the problem here? and how to fix it?
Regards,
/wc
funtions from a COM DLL. So, I import the dll by using
System.Runtime.Interopservices.DllImport like this,
[DllImport("C:\\Program Files
(x86)\\ZIOSOFT\\Ziostation\\bin\\AxZpalKicker.dll")]
unsafe public static extern bool CheckZpal(byte * isrunning);
However, I'm getting a System.BadImageFormatException (HRESULT: 0x8007000B)
when trying to call CheckZpal() in one of the method...
The function declaration for CheckZpal in the COM interface is
STDMETHOD() IZpalKicker::CheckZpal ( BYTE * exist );
Can anyone advice what is the problem here? and how to fix it?
Regards,
/wc