如何在自己的程序中加入宏的功能[7]

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

本文简介:选择自 zswzwy 的 blog

   virtual ulong _stdcall addref(void) {

      return ++m_dwref;

   }

   virtual ulong _stdcall release(void) {

      if(--m_dwref == 0) return 0;

      return m_dwref;

   }

  

   virtual hresult _stdcall getlcid(lcid *plcid) {

      return s_ok;

   }

  

   virtual hresult _stdcall getiteminfo(lpcolestr pstrname,

      dword dwreturnmask, iunknown **ppunkitem, itypeinfo **ppti) {

 

      if(ppti) {

         *ppti = null;

        

         if(dwreturnmask & scriptinfo_itypeinfo)

            return type_e_elementnotfound;

      }

本文关键:
  相关方案
Google
 

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

go top