Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt ActiveX in Visual Studio

Qt ActiveX in Visual Studio

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 870 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    petomosy
    wrote on last edited by
    #1

    Hi Guys!

    I've got two question about Qt and Studio ...

    1. Does anyone know if it is possible to compile (Qt) ActiveX components in Visual Studio without the Visual Studio Add-in? I mean like creating idl from the source code (like Qt Creator does)? - I've tried to set up post build actions for IDC ... without success.

    2. I have to create an out-of-process COM server for a Qt app (actualy I have to build it into an already working software), so I've tried to do it with Qt library, QAxServer. Well, first I've tried to compile and run some Qt examples, which worked just fine with Qt Creator, but not with Visual Studio. I could compile it, but when it was running (the one compiled with VS), I got some access violation (looked like it came from the main message loop) .. the same code worked with Qt Creator. (Note, there was an important line in the .pro file: CONFIG += qaxserver)

    The documentation (http://qt-project.org/doc/qt-4.8/activeqt-server.html) sais, that the qaxserver configuration will cause the qmake tool to link the binary against qaxserver.lib instead of qtmain.lib.

    I didn't link explicitly qtmain.lib in VS (maybe it does, through other libraries).. Does anyone know how to link qaxserver.lib INSTEAD OF qtmain.lib?
    Or any other idea what could cause the crash?

    Thanks in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved