G
Guest
I have this structure and function defined in C++ .dll:
typedef struct {
POINT ptMouse;
WCHAR Word [1024];
} TXTCAP_EVENT, *PTXTCAP_EVENT;
void txtcapGetData (PTXTCAP_EVENT pe);
I want to use this .dll in C#. How should I declare the function? I don't
know how to declare passing a pointer to a structure.
[DllImport("mydll.dll")]
public static extern void txtcapGetData( ???);
Thank you in advance
typedef struct {
POINT ptMouse;
WCHAR Word [1024];
} TXTCAP_EVENT, *PTXTCAP_EVENT;
void txtcapGetData (PTXTCAP_EVENT pe);
I want to use this .dll in C#. How should I declare the function? I don't
know how to declare passing a pointer to a structure.
[DllImport("mydll.dll")]
public static extern void txtcapGetData( ???);
Thank you in advance