M
MS
I have a dll with function exports I need to import into a c# app. The
signature of the c++ function is this:
extern char** WINAPI Flex_GetFeatureList(LM_HANDLE* hJob, int fSearchAll);
I am importing this in my C# app with this declaration:
[System.Runtime.InteropServices.DllImportAttribute(DllName, EntryPoint =
"Flex_GetFeatureList")]
public static extern System.IntPtr Flex_GetFeatureList(IntPtr hJob, Int32
fSearchAll);
When I try to read this into a string array in c#, I don't get anything that
looks right. It is just a string of garbled characters.
Can someone give me some pointers. I am really stuck.
Adrian
signature of the c++ function is this:
extern char** WINAPI Flex_GetFeatureList(LM_HANDLE* hJob, int fSearchAll);
I am importing this in my C# app with this declaration:
[System.Runtime.InteropServices.DllImportAttribute(DllName, EntryPoint =
"Flex_GetFeatureList")]
public static extern System.IntPtr Flex_GetFeatureList(IntPtr hJob, Int32
fSearchAll);
When I try to read this into a string array in c#, I don't get anything that
looks right. It is just a string of garbled characters.
Can someone give me some pointers. I am really stuck.
Adrian