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. How do I register qt-5.6/activeqt-simple-example executable activeQtSerever ?
Forum Updated to NodeBB v4.3 + New Features

How do I register qt-5.6/activeqt-simple-example executable activeQtSerever ?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 724 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mirro
    wrote on last edited by mirro
    #1

    windeployqt.exe simple.exe executes first.

    idc.exe -regserver simple.exe are then executed on computers that do not have a QT environment.

    Why did the prompt fail to register?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      windeployqt.exe might have missed something for some reason.
      On the deployment machine use a tool like
      https://github.com/lucasg/Dependencies

      to see if it misses any MinGW or visual studio runtimes files
      or similar.

      Or hang on for a bit and see if @hskoglund comes around as he is
      often a valuable resource for anything activeqt. :)

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi, are you talking about this example: https://doc.qt.io/archives/qt-5.6/activeqt-activeqt-simple-example.html and did you change it to build simple.dll instead of simpleax.exe? It shouldn't matter, the ActiveQt stuff will work the same.

        Try to avoid using idc.exe it will give you false messages. Instead, use regsvr32 simple.dll. For example, if I build the example above as you did (simple.dll) and then try idc directly, without running windeployqt first:

        idc -regserver simple.dll
        Server registered successfully!
        
        regsvr32 simple.dll
        (this will complain about missing Qt5Core.dll etc.)
        
        M 2 Replies Last reply
        2
        • hskoglundH hskoglund

          Hi, are you talking about this example: https://doc.qt.io/archives/qt-5.6/activeqt-activeqt-simple-example.html and did you change it to build simple.dll instead of simpleax.exe? It shouldn't matter, the ActiveQt stuff will work the same.

          Try to avoid using idc.exe it will give you false messages. Instead, use regsvr32 simple.dll. For example, if I build the example above as you did (simple.dll) and then try idc directly, without running windeployqt first:

          idc -regserver simple.dll
          Server registered successfully!
          
          regsvr32 simple.dll
          (this will complain about missing Qt5Core.dll etc.)
          
          M Offline
          M Offline
          mirro
          wrote on last edited by mirro
          #4

          @hskoglund sorry. it is .exe.

          I registered successfully with the Relesae version of the library.Before using the Debug.

          C:\Users\admin>D:\release\idc.exe -regserver  D:\release\simpleax.exe
          Server registered successfully!
          
          1 Reply Last reply
          0
          • hskoglundH hskoglund

            Hi, are you talking about this example: https://doc.qt.io/archives/qt-5.6/activeqt-activeqt-simple-example.html and did you change it to build simple.dll instead of simpleax.exe? It shouldn't matter, the ActiveQt stuff will work the same.

            Try to avoid using idc.exe it will give you false messages. Instead, use regsvr32 simple.dll. For example, if I build the example above as you did (simple.dll) and then try idc directly, without running windeployqt first:

            idc -regserver simple.dll
            Server registered successfully!
            
            regsvr32 simple.dll
            (this will complain about missing Qt5Core.dll etc.)
            
            M Offline
            M Offline
            mirro
            wrote on last edited by mirro
            #5

            @hskoglund
            I use this 'qmake -tp vc simpleax.pro' command to convert to vs 2015 project.
            so,How do I build this executable COM activeqtservers project with VS2015? or how to use CMakeFile.txt configuration?

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Sorry I am not an expert on building Qt apps with Visual Studio :-(
              (Used Visual Studio a lot in my MFC days but that was a loooong time ago and I''m much happier running Qt Creator.)

              M 1 Reply Last reply
              1
              • hskoglundH hskoglund

                Sorry I am not an expert on building Qt apps with Visual Studio :-(
                (Used Visual Studio a lot in my MFC days but that was a loooong time ago and I''m much happier running Qt Creator.)

                M Offline
                M Offline
                mirro
                wrote on last edited by
                #7

                @hskoglund
                Are there any problems with using executable COM servers than in-process ?

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Hi, not really, COM and QAxObjects work the same when running in a .dll or on a standalone, separate .exe file.
                  One difference is speed, if you're passing lots of data across COM then an in-process .dll file is faster than out out-of-process .exe file.

                  1 Reply Last reply
                  1

                  • Login

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