📄 subject_59693.htm
字号:
<p>
序号:59693 发表者:金枪鱼 发表日期:2003-11-09 22:01:07
<br>主题:研究CGridCtrl代码出现的问题
<br>内容:就下面这条语句,在VC6下没有遇到问题<BR>m_arRowHeights.InsertAt(nRow, (int)0);<BR>弄到VC7下,总是<BR> error C2668: “CUIntArray::InsertAt” : 对重载函数的调用不明确<BR>-------<BR>查了一下MSDN的CUIntArray类说明,这个InsertAt函数确实有两种形式:<BR>void InsertAt( int nIndex, CObject* newElement, int nCount = 1 );<BR>throw( CMemoryException );<BR><BR>void InsertAt( int nStartIndex, CObArray* pNewArray );<BR>throw( CMemoryException );<BR>------<BR>按照参数姓氏,应该是的二种形式,但该怎样写这条语句才能正确,请高手指点。<BR><BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:iwill 回复日期:2003-11-09 22:26:02
<br>内容:你可以指定两个或三个参数<BR><BR>InsertAt(nRow,NULL,1);<BR>InsertAt(nRow,(CObArray*)NULL);
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:金枪鱼 回复日期:2003-11-09 23:10:08
<br>内容:这我知道。<BR><BR>但这InsertAt(nRow, (int)0);的意思是什么,我理解为清理,但写成InsertAt(nRow,NULL);编译也不行。<BR><BR>另外<BR> int x;<BR> x=fabs(x);<BR> 在VC6下没问题,到VC7中也说重载不明确!我觉得似乎要先指定命名空间。<BR>2003-11-9 23:12:22
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -