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. Problem about building ActiveX Server in Qt, register failed.
QtWS25 Last Chance

Problem about building ActiveX Server in Qt, register failed.

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 4.3k 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.
  • S Offline
    S Offline
    ScottLiu
    wrote on last edited by
    #1

    I got the code of bouncer which in "C++ GUI Programming with Qt 4", I can complie it but while register the dll with command line "regsvr32 bouncer.dll", it shows that some error that DllRegisterServer fail, and error code 0x80040200, do you know why? And one more question, does Qt open source version support QAxServer?

    PS. I use Qt SDK 4.7.3.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi

      AFAIK, Qt open source supports all features of Qt :-)
      But registering the dlls means, the dll is lopaded. This implies loading Qt libaries. If they are not found, registering fails.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        ScottLiu
        wrote on last edited by
        #3

        Thank you, Gerolf.

        But I can't image how to register the activex dll, can you send me some information to read?

        I want to know:

        1. How to create a Qt ActiveX project?
        2. How to register the Qt complied ActiveX DLL?
        3. What DLLs should be used together with Qt complied ActiveX?
        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Going back from 3 to 1:

          1. You can use dependecyViewer from MS to check, which dlls are really needed.
          2. regsvr32 <dllname> registers a COM dll
          3. see the docs :-)

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • L Offline
            L Offline
            levanil
            wrote on last edited by
            #5

            additional question... if the dll has been successfully registered with command regsvr32.exe but the server is not running.
            what could be the reason?

            I'm using Qt5.2.0, IE 11 (with enabled execution of ActiveX objects), Win7.

            I have another one close issue - I use Qt add-on for MS VS 2012 and an example from Blancshet's book Qt4.5 GUI is not built if I leave QAxAggregated *AxBouncer::createAggregate() in the project, some strange errors appears:

            c:\qt\qt5.2.0\5.2.0\msvc2012_64\include\qtwidgets\qwidget.h(741):
            error C2908: explicit specialization;
            'T qobject_cast<QWidget*>(QObject *)' has already been instantiated

            how to make it work? (atm, I throw away this security interface).

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi and welcome to devnet,

              Please don't reopen such an old thread with new questions, open a new thread or even several if you have multiple questions.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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