Results 1 to 7 of 7

Thread: Can't compile the Qutlook example

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't compile the Qutlook example

    I don't know why it worked; it didn't recompile the msoutl.cpp, but it is not correct and doesn't work.
    I think it is a bug in the dumpcpp tool, and opened a bug in their bug tracking tool: http://bugreports.qt.nokia.com/browse/QTBUG-11721

    So, no resolution, for yet.

  2. #2
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't compile the Qutlook example

    Hi guys. You are quite correct. Enums can not be passed from COM server. All data is via class declarations. The problem is caused by -gccdump incorrectly creating msoutl.h, but the answer is simple.
    Open msoutl.h in editor and change line - "enum MsoFeatureInstall;" - to "class MsoFeatureInstall;"

    #include <qdatetime.h>
    #include <qpixmap.h>

    struct IDispatch;

    // Referenced namespace
    namespace Office {
    class Assistant;
    class COMAddIns;
    class LanguageSettings;
    class AnswerWizard;
    class MsoFeatureInstall; *** changed from - enum MsoFeatureInstall;
    class CommandBars;
    }

    .............................

  3. #3
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't compile the Qutlook example

    Sorry guys

    First assumptions not quite right. Enum is required and needs to be declared prior to forward declaration. Try this. It does compile now.

    // Referenced namespace
    namespace Office {

    enum MsoFeatureInstall {
    msoFeatureInstallNone = 0,
    msoFeatureInstallOnDemand = 1,
    msoFeatureinstallOnDemandWithUI = 2
    };

    // forward declarations
    class Assistant;
    class COMAddIns;
    class LanguageSettings;
    class AnswerWizard;
    enum MsoFeatureInstall;
    class CommandBars;
    }

Similar Threads

  1. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04
  2. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06
  3. Need to compile with MySQL drivers/plugins
    By mongenix in forum Newbie
    Replies: 5
    Last Post: 6th January 2007, 20:24
  4. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.