最近在开发东西,却报了RT的错误
代码如下:
cli::array<System::Boolean, 2>^% b = gcnew cli::array<System::Boolean, 2>(false, false);
adamModbus->Modbus()->ReadCoilStatus(1, 1, b);
函数原型:
bool Advantech::Adam::Modbus::ReadCoilStatus(int,int,cli::array<Type,dimension> ^%)
获得的错误
1>dvDlg.cpp(186): error C2664: “bool Advantech::Adam::Modbus::ReadCoilStatus(int,int,cli::array<Type,dimension> ^%)”: 不能将参数 3 从“cli::array<Type,dimension> ^”转换为“cli::array<Type,dimension> ^%”
with
[
Type=unsigned char,
dimension=1
]
and
[
Type=bool,
dimension=2
]
and
[
Type=unsigned char,
dimension=1
]
请高手帮忙,在线等答案啊~~
C++ cli
------解决方案--------------------
c++/cli 难在,它不仅是托管程序,也有非托管部分,就好像武侠小说里说的身兼正邪两派武功,容易走火入魔
------解决方案--------------------