How do I register qt-5.6/activeqt-simple-example executable activeQtSerever ?
-
Hi
windeployqt.exe might have missed something for some reason.
On the deployment machine use a tool like
https://github.com/lucasg/Dependenciesto 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. :) -
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.)
-
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.)
@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!
-
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.)
@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? -
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.)@hskoglund
Are there any problems with using executable COM servers than in-process ? -