While trying to convert my structure to byte* :
objNDSDriver.StartFn((byte*)objSTNDSFTPDriverInfo);
I am getting the error:
error C2440: 'type cast' : cannot convert from 'STNDSFTPDriverInfo' to 'byte *'
While trying to convert my structure to byte* :
objNDSDriver.StartFn((byte*)objSTNDSFTPDriverInfo);
I am getting the error:
error C2440: 'type cast' : cannot convert from 'STNDSFTPDriverInfo' to 'byte *'
You should take the address of your structure, and probably use the reinterpret_cast operator:
objNDSDriver.StartFn(reinterpret_cast<byte *>(&objSTNDSFTPDriverInfo));