(LPCSTR)_bstr_t   _variant_t alot 这些都是干什么用的啊

解决方案 »

  1.   

    对了 ,我把Cstring的成员但 字符串用为什么都好似出错啊
      

  2.   

    这些都是类型阿,写清楚点,我还不是很明白你的意思============================================================================
    http://www.betajin.com/alphasun/index.htm
    DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | AjaxParser词法分析
      

  3.   

    _variant_tThis class is a wrapper for the Automation Variant data type. It provides memory allocation and deallocation, and calls SysAllocString and SysFreeString when appropriate. _bstr_tThis class is a wrapper for the Automation Bstr data type. It provides memory allocation and deallocation, and calls VariantInit and VariantClear when appropriate.
      

  4.   

    CString *sz;
    ...
    VariantInit(&varSrc); 
    varSrc.bstrVal = (BSTR)sz;
      

  5.   

    _bstr_t   _variant_t 在ADO中经常用到
    你可以查看MSDN
      

  6.   

    thinks :every one!
    10 for the joining.
      

  7.   

    买本msdn吧强烈见意
    --------------------
    呵呵,好像msdn不是书本:)