ecitluo 发表于 2007-9-27 15:05:00

VC++和ActiveX: 请问如何设置ISelectectionSet的后面两个参数

<p></p><p>&nbsp; 代码是这样的: </p><p>&nbsp;&nbsp; &nbsp;IAcadSelectionSet set=sets.Add(L"test");<br/>&nbsp;&nbsp;&nbsp;COleSafeArray&nbsp; value,data;<br/>&nbsp;&nbsp;&nbsp;short typei[]={8};<br/>&nbsp;&nbsp;&nbsp;TCHAR v[]=_T("0");<br/>&nbsp;&nbsp;&nbsp;data.CreateOneDim(VT_UI1,sizeof(v)/sizeof(TCHAR),v);<br/>&nbsp;&nbsp;&nbsp;type.CreateOneDim(VT_I2,1,typei);</p><p><br/>&nbsp;&nbsp;&nbsp;set.Select (5,covOptional,covOptional,type, data);</p><p>&nbsp;&nbsp; 这样总是在运行时提示:&nbsp;&nbsp; 参数FilterData在运行时无效,而改为:</p><p>&nbsp;&nbsp;&nbsp; set.Select (5,covOptional,covOptional,covOptional, covOptional);</p><p>&nbsp;&nbsp;&nbsp; 却可以,&nbsp;&nbsp; 参数 type 和 data 要怎样填充?</p>
页: [1]
查看完整版本: VC++和ActiveX: 请问如何设置ISelectectionSet的后面两个参数