Private m_objEncoder As IAudioEncoderX
Set m_objEncoder = MP3EncoderX1.Object

解决方案 »

  1.   

    这是vc调office参考一下吧
    _PptApplication  m_powerpointApp;
     Presentations m_powerpointPres;
     _Presentation m_powerpointPre;    m_powerpointPres.ReleaseDispatch();
     m_powerpointPre.ReleaseDispatch();
     
     if(!m_powerpointApp.CreateDispatch("PowerPoint.Application"))
     { 
      AfxMessageBox("创建PowerPoint服务失败!"); 
      return FALSE; 
     } 
     
     m_powerpointApp.m_bAutoRelease=true;
     m_powerpointApp.SetVisible(TRUE);//对于PowerPoint必须设置为TRUE m_powerpointPres.AttachDispatch(m_powerpointApp.GetPresentations());
        m_powerpointPres.Open(lpszFileName,-1,-1,-1);
     m_powerpointPre.AttachDispatch(m_powerpointApp.GetActivePresentation(),TRUE);
        
     m_powerpointPre.PrintOut(-1,-1,"",long(1),-1);
     
        m_powerpointApp.Quit(); m_powerpointPre.ReleaseDispatch();
      

  2.   

    告诉你一种最简单的调用方法,不过要用tlb文件的有。
    class aa
    {
    private:
     IAudioEncoderXPtr m_ptr;
     
     在调用函数中
     {
       m_ptr.CreateInstance(...)
       m_ptr->method();
       ....
     }}
      

  3.   


    IAudioEncoderX 是什么是一个类码?