I reference a dll library which is compiled by vc++ of visual studio 2005. There is a function in the dll:
LRESULT DeviceOpen(Int32 devNum, LONG_PTR* devHandle).
When I reference this dll in a c# project, this function is showed in Object Browser:
DeviceOpen(int, long*)
I use the funcion in the c# project like:
int devNum;
long devHandle; // I compiled to 64bit application
DeviceOpen(devNum, ref devHandle)
Error occured when I compile this project: Argument '2': cannot convert from 'ref long' to 'long*'
Any help will be appreciated.