Hello all:
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<T ype>'"
DLL's declaration:
What'swrong here ?
Thanks in advance !
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<T ype>'"
DLL's declaration:
Code:
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 !
Comment