I'm looking for a program (or c# algorithm) that will convert my C++ function headers to C# DLLImport headers. For example:
idevice_error_t idevice_get_device_list (char *** devices, int * count);
to
[DllImport("DLL Path here", EntryPoint = "idevice_get_device_list", CallingConvention = CallingConvention.Cdecl)]
internal static extern idevice_error_t idevice_get_device_list(out IntPtr devices, out int count);
I have already found PInvoke Interop Assistant, but I can't convert header from example because it doesn't know idevice_error_t. I want a program that will ignore everything it doesn't know and just paste inline the name idevice_error_t in c# code. I will change that letter.
Aucun commentaire:
Enregistrer un commentaire