Vikram Ranabhatt
Vikram Ranabhatt

Reputation: 7630

Wrapping void pointer in C++/CLI and C#

I am working on C++/CLI wrapper for C static libary that is eventually used in C# application.

I have function like this in C Library.

long SubscriveEvent(void* handle,device name ,....);

long StartCaptureViceo(handle,...,...);

Here StartCaptureViceo () will use the handle from SubscriveEvent()

I nee to maintain some variable in C# for this void Now what data type i should use in C++/CLI to Retain.

Please help me for this.

Upvotes: 1

Views: 1428

Answers (1)

Armen Tsirunyan
Armen Tsirunyan

Reputation: 133072

System::IntPtr

Upvotes: 4

Related Questions