clarion

Convert a Clarion Procedure Declaration to C# DLLImport

百般思念 提交于 2019-12-01 10:37:05
How can I convert this Clarion procedure declaration to C#? It's part of a 3rd Party DLL written in C, which doesn't have much documentation. I have listed the prototype for the method in Clarion that is working correctly. In C#, I'm not sure what type to use to replace *CString . I tried char[] like @DanielC suggested, but it didn't work. I also found that Clarion long is 32-bit (thanks @shf301). Clarion: SendRequest Procedure(*CString xData,Long DataLen,Long xTimeout),Byte,Virtual C# (what I've tried, which doesn't work): [DllImport("3RD_PARTY_API.dll")] private static extern long

Convert a Clarion Procedure Declaration to C# DLLImport

感情迁移 提交于 2019-12-01 07:54:17
问题 How can I convert this Clarion procedure declaration to C#? It's part of a 3rd Party DLL written in C, which doesn't have much documentation. I have listed the prototype for the method in Clarion that is working correctly. In C#, I'm not sure what type to use to replace *CString . I tried char[] like @DanielC suggested, but it didn't work. I also found that Clarion long is 32-bit (thanks @shf301). Clarion: SendRequest Procedure(*CString xData,Long DataLen,Long xTimeout),Byte,Virtual C# (what