SAFEARRAY使用实例[13]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sheismylife 的 blog

     hresult hr=safearrayaccessdata(parray,(void**)&pdata);

     long low(0),high(0);

     safearraygetlbound(parray,1,&low);

     safearraygetubound(parray,1,&high);

     long size=high-low+1;

     for(long idx=low;idx<size;++idx)

     {

          pdata[idx]=idx;

          cout<<pdata[idx]<<endl;

     }

     safearrayunaccessdata(parray);

     safearraydestroy(parray);

 

本文关键:SAFEARRAY使用实例
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top