Tool/software:
Hi,
As I want to write a C# GUI to release BSL programming, but when I want to use BSL430 DLL, problems occurred. I failed to use the functions whose input or output is structure.
The following code is about C# wrapper for BSL430 DLL:

The structure definition is like following:

The error information is “System.Runtime.InteropServices.MarshalDirectiveException”: The type signature of a method is not compatible with PInvoke.

Is there any problem with my dll import process? How can I resole this problem?
Best Regards,
ZJY


