草庐IT

objSTNDSFTPDriverInfo

全部标签

c++ - 如何将结构转换为字节*

尝试将我的结构转换为byte*时:objNDSDriver.StartFn((byte*)objSTNDSFTPDriverInfo);我收到错误:errorC2440:'typecast':cannotconvertfrom'STNDSFTPDriverInfo'to'byte*' 最佳答案 你应该获取结构的地址,并且可能使用reinterpret_cast运算符(operator):objNDSDriver.StartFn(reinterpret_cast(&objSTNDSFTPDriverInfo));