Results 1 to 1 of 1

Thread: Problems with the qutlook example (ActiveQt Examples)

  1. #1
    Join Date
    Mar 2011
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problems with the qutlook example (ActiveQt Examples)

    Hi All,

    I have to automate some tasks by using this M$ Office stuff. With perl and Win32::OLE it works more or less but I think it should be also possible with QT. To start I used the qutlook example from the ActiveQt Examples and nothing works like expected.

    1.)
    Qt Code:
    1. TYPELIBS = $$system(dumpcpp -getfile {00062FFF-0000-0000-C000-000000000046})
    To copy to clipboard, switch view to plain text mode 
    from the .pro file do not produce the needed msoutl.h and msoutl.cpp
    I have to create them by my self using the output of the above by

    Qt Code:
    1. dumpcpp.exe "C:\Programme\Microsoft Office\Office12\msoutl.olb" -o msoutl
    To copy to clipboard, switch view to plain text mode 

    2.) After that I get the error

    Qt Code:
    1. In file included from addressview.cpp:43:
    2. msoutl.h:30: error: use of enum 'MsoFeatureInstall' without previous declaration
    3. In file included from addressview.cpp:43:
    4. msoutl.h:3928: error: 'MsoFeatureInstall' in namespace 'Office' does not name a type
    5. msoutl.h:3929: error: 'Office::MsoFeatureInstall' has not been declared
    6. msoutl.h:40484: error: 'MsoFeatureInstall' in namespace 'Office' does not name a type
    7. msoutl.h:40485: error: 'Office::MsoFeatureInstall' has not been declared
    8. msoutl.h:53499: error: 'MsoFeatureInstall' in namespace 'Office' does not name a type
    9. msoutl.h:53505: error: variable or field 'SetFeatureInstall' declared void
    10. msoutl.h:53505: error: 'MsoFeatureInstall' is not a member of 'Office'
    11. msoutl.h:88915: error: 'MsoFeatureInstall' in namespace 'Office' does not name a type
    12. msoutl.h:88921: error: variable or field 'SetFeatureInstall' declared void
    13. msoutl.h:88921: error: 'MsoFeatureInstall' is not a member of 'Office'
    To copy to clipboard, switch view to plain text mode 

    From msoutl.h

    Qt Code:
    1. // Referenced namespace
    2. namespace Office {
    3. class Assistant;
    4. class COMAddIns;
    5. class LanguageSettings;
    6. class AnswerWizard;
    7. enum MsoFeatureInstall; <----- this is the bad guy
    8. class IAssistance;
    9. class CommandBars;
    10. class CommandBar;
    11. }
    To copy to clipboard, switch view to plain text mode 

    Because I'm new to C++ I have not the slightes clue what is going wrong and what to do. I'm only looking for a simple way to aviod the use of VBA.

    After writing this text I found a suggestion to work arround here [WIKI]http://www.qtcentre.org/threads/8811-Can-t-compile-the-Qutlook-example[/WIKI] but the resulting program crashes

    Qt Code:
    1. \QtSDK\Examples\4.7\activeqt\qutlook\debug\qutlook.exe...ASSERT: "id < 0" in file c:\ndk_buildrepos\qt-desktop\src\activeqt\container\qaxbase.cpp, line 3717
    2. \QtSDK\Examples\4.7\activeqt\qutlook\debug\qutlook.exe beendet, Rückgabewert 3
    To copy to clipboard, switch view to plain text mode 

    Oh by the way has someone an idea how to find out the CLSID of Word and Excel ??

    Thanks
    dexli
    Last edited by dexli; 9th July 2012 at 17:54.

Similar Threads

  1. Replies: 1
    Last Post: 29th June 2012, 12:38
  2. ActiveQt Examples fail with VS2010
    By magpielover in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2012, 14:26
  3. Can't compile the Qutlook example
    By Matt84 in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2011, 11:43
  4. Problems with ACtiveQT in calling a routine
    By franco.amato in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2010, 01:00
  5. use ActiveQt examples
    By MrShahi in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 12:15

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.