vIndex=long(0);
m_datagrid.GetColumns.GetItem(vIndex).SetWidth(10);
vIndex=long(1);
m_datagrid.GetColumns.GetItem(vIndex).SetWidth(20);
出错:
:\king22\MFC\SQL\SQLDlg.cpp(128) : error C2664: 'GetItem' : cannot convert parameter 1 from 'class _variant_t' to 'int'
Ambiguous user-defined-conversion
F:\king22\MFC\SQL\SQLDlg.cpp(128) : error C2228: left of '.SetWidth' must have class/struct/union type
F:\king22\MFC\SQL\SQLDlg.cpp(130) : error C2228: left of '.GetItem' must have class/struct/union type
F:\king22\MFC\SQL\SQLDlg.cpp(130) : error C2228: left of '.SetWidth' must have class/struct/union type
Error executing cl.exe.SQL.exe - 4 error(s), 0 warning(s)
已经定义了GETITEM()函数,请问是那里出错?
m_datagrid.GetColumns.GetItem(vIndex).SetWidth(10);
vIndex=long(1);
m_datagrid.GetColumns.GetItem(vIndex).SetWidth(20);
出错:
:\king22\MFC\SQL\SQLDlg.cpp(128) : error C2664: 'GetItem' : cannot convert parameter 1 from 'class _variant_t' to 'int'
Ambiguous user-defined-conversion
F:\king22\MFC\SQL\SQLDlg.cpp(128) : error C2228: left of '.SetWidth' must have class/struct/union type
F:\king22\MFC\SQL\SQLDlg.cpp(130) : error C2228: left of '.GetItem' must have class/struct/union type
F:\king22\MFC\SQL\SQLDlg.cpp(130) : error C2228: left of '.SetWidth' must have class/struct/union type
Error executing cl.exe.SQL.exe - 4 error(s), 0 warning(s)
已经定义了GETITEM()函数,请问是那里出错?
解决方案 »
- 求助 关于ListControl 显示 Icon的问题
- 如何实现一个分布式计算平台
- 关于rundll32.exe
- 对话框中,如果通过 COM 的形式调用 Windows Media Player 9.0 控件?
- 如何创建新的窗口
- 组合框或者是列表框 显示本地磁盘
- 如何导入一个位图作为ToolBar资源呀?
- 那位高人告诉我与Foxbase的total on 的SQL语句怎样写?
- 线程安全的链表如何编写
- 设计FTP时,当链接服务器有时候会返回多于一次的信息,除了用timeout的方法外有没有其他方法自动多次调用recv()函数
- 增加一列的sql语句如何写?内容为。。。。
- 关于用AT命令建立两modem远程拨号连接失败的问题。很郁闷:(在线等
后面的错误都是由第一个错误引起的