读书人

dataGridView1中直接赋值出现下面的有

发布时间: 2014-01-19 01:28:51 作者: rapoo

dataGridView1中直接赋值出现下面的问题
char text_msg[8];
this->dataGridView1->Rows[0]->Cells[0]->Value = text_msg;

提示:error C2664: “System::Windows::Forms::DataGridViewCell::Value::set”: 不能将参数 1 从“char [8]”转换为“System::Object ^”

这个要怎么处理下呢?谢谢了
[解决办法]
text_msg 将这个数组转为字符串再赋值

读书人网 >VC

热点推荐