Using the Outlook type library in Qt

  • I'm trying to build the example qutlook which is an ActiveX example using the Outlook control. The project loads with the output: Project MESSAGE: Microsoft Outlook type library not found! I have access to the file MSOUTL.OLB which I got from my office machine and copied to the development machine to the project folder. I guess this may need to be registered on the dev. machine to be available as an ActiveX control but don't see how to do that.

  • Qt Champions 2017

    @astodolski said:

    have you tried
    REGSVR32.EXE c:\thepath\MSOUTL.OLB

    and see what it thinks ?

  • @mrjj

    I did try that first.

    "The module 'msoutl.olb' was loaded but the entry-point DllRegisterServer was not found"
    "Make sure that 'msoutl.olb' is a valid DLL or OCX file and try again"

    It may not work unless Outlook is a registered control on the machine. It doesn't appear on the list of registered types

  • Qt Champions 2017

    Can it even work when outlook is not installed ?
    Its outlook type lib.
    With VBA - outlook must be installed (on my project)
    but not sure what the Qt ActiveX sample really does.

    tried with
    dumpbin /exports "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSOUTL.OLB"

    and it dont have DllRegisterServer so I thinks that what it says.
    so not sure it can even be registered that way.

  • @mrjj
    I don't if Outlook has to be installed or not. The control needs to be registered to be available

  • Qt Champions 2017

    @mrjj said:
    What what I can gather from VBA docs,
    outlook must also be installed for MSOUTL.OLB to work.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.