I am new to C++/CLI,a nd I am trying to use a native dll.
I get the error "cannot convert from 'cli::interior_ptr<Type>' to 'cli::pin_ptr<Type>'"
DLL's declaration:
Expand|Select|Wrap|Line Numbers
- SI_STATUS WINAPI SI_GetNumDevices(
- LPDWORD lpdwNumDevices
- );
- //I am pinning the pointer and call the dll with the error.
- pin_ptr<long int> p = &dwNumDevices;
- SI_STATUS status = SI_GetNumDevices(p);
Thanks in advance !