Curtis Newton
unread,Feb 21, 2012, 6:18:06 AM2/21/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hallo,
ich habe hier in einer DLL folgendes:
typedef struct _DeviceKey
{
INT32 _serial;
void *_private;
} DeviceKey;
nebst dieser Funktion:
INT32 GetDeviceKeyListEntry(INT32 index, DeviceKey** device_key);
Mein Ansatz:
public class DeviceKey
{
Int32 _serial;
IntPtr _private;
};
[DllImport("My.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int GetDeviceKeyListEntry(Int32 index, out DeviceKey device_key);
Leider stürzt das Programm beim Aufruf ab. Wie mache ich es richtig?
C.