Hallo Leute!
Folgendes Problem:
Ich hab eine DLL die ich in C# einbinen möchte! Ausserdem hab ich ein .h File in dem ich die Datentypen herausfinde, dort steht sowas drinnen:
BOOL WINAPI GetData(void *pBuffer, unsigned long addr0, WORD nCount);
Ich möchte nun diesen Aufruf in C# nutzen! Ich mache das so:
[DllImport("Lasal32.dll")]
unsafe public static extern bool GetData (byte* pData, int addr, int length);
Nun meine Frage:
Vielen DANK für Eure Hilfe!
In der WinAPI ist WORD 16-bit breit -> also ushort in C#.
Unsigned long in einem 32-bit System, entspricht dem Datentypen uint in C#.
Schau mal hier für die Datentypen:
http://www.datasource.de/programmierung/tab33_cppdatentypen.html
I am Jack's smirking revenge.
I am Jack's raging bile duct.
I am Jack's cold sweat.
I am Jack's complete lack of surprise.
I am Jack's broken heart.
I am Jack's wasted life.