<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Missing meta object information with ActiveQt server]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a dll that I've written in Qt which can be used successfully with other Qt apps. The top level widget is a singleton class.</p>
<p dir="auto">I now need to suppport someone that's using the .Net framework and want to provide the dll functionality as a COM object using ActiveQt.</p>
<p dir="auto">I've created a wrapper application that acts as a facade to the dll. The problem I have is that when I try to compile,  if the code calls functions in the original dll, I get the following error: -</p>
<p dir="auto">1&gt;  C:\Qt\4.7.1\bin\idc.exe c:\src\dotnetcomwrapper\debug\dotnetcomwrapperd.dll /regserver<br />
1&gt;debug\obj\dotnetcomwrapperd.idl<br />
1&gt;Couldn't load library file c:\src\dotnetcomwrapper\debug\dotnetcomwrapperd.dll<br />
1&gt;<em>Class has no metaobject information</em> (error in c:\src\dotnetcomwrapper\debug\dotnetcomwrapperd.dll)!</p>
<p dir="auto">With that error, the dll fails to register as a COM service.</p>
<p dir="auto">If I remove any calls to the dll, the compilation works and the dll is registered successfully as a COM object.<br />
Can someone please explain why no metaobject information is being created?</p>
<p dir="auto">Having played around, I was able to get it to work once, so I know it's possible, but don't know what I did and it's no longer generating a dll with valid metaobject information.</p>
<p dir="auto">Thanks,<br />
Simon ;O)</p>
]]></description><link>https://forum.qt.io/topic/10572/missing-meta-object-information-with-activeqt-server</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 21:37:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/10572.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Oct 2011 14:29:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Wed, 10 Aug 2016 12:48:43 GMT]]></title><description><![CDATA[<p dir="auto">Please, can you post the content of your .bat file?</p>
]]></description><link>https://forum.qt.io/post/341671</link><guid isPermaLink="true">https://forum.qt.io/post/341671</guid><dc:creator><![CDATA[pmdev]]></dc:creator><pubDate>Wed, 10 Aug 2016 12:48:43 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Wed, 23 Nov 2011 10:43:39 GMT]]></title><description><![CDATA[<p dir="auto">I've been asked if I have found a solution. I never did work out why the post-process doesn't work the way it's supposed to. However, I did come up with a solution.</p>
<p dir="auto">If you add qaxserver_no_postlink to the CONFIG option in the .pro file, it will turn off the post process steps that are failing.</p>
<p dir="auto">Next, create a batch file with the required calls to the idc that work when called from the command prompt.</p>
<p dir="auto">Add the batch file to the .pro (e.g. QMAKE_POST_LINK = postbuild_release.bat) to enable it to be called in the post process step and then reload the project.</p>
<p dir="auto">This now works, but ensure that if you build a debug version, you'll probably need to unregister the dll before running a release version.</p>
<p dir="auto">I hope that helps anyone else with the same issue.</p>
]]></description><link>https://forum.qt.io/post/117897</link><guid isPermaLink="true">https://forum.qt.io/post/117897</guid><dc:creator><![CDATA[Mr-Merlin]]></dc:creator><pubDate>Wed, 23 Nov 2011 10:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 12:13:48 GMT]]></title><description><![CDATA[<p dir="auto">The dependent dlls are in the same directory as the dll that idc is loading. Annoyingly, idc doesn't provide any useful output. I tried using procmon (previously filemon) to see if it's failing to find any files, but with no success.</p>
]]></description><link>https://forum.qt.io/post/113909</link><guid isPermaLink="true">https://forum.qt.io/post/113909</guid><dc:creator><![CDATA[Mr-Merlin]]></dc:creator><pubDate>Thu, 20 Oct 2011 12:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 11:58:54 GMT]]></title><description><![CDATA[<p dir="auto">To the executables, yes. But where are the libraryies located, that are loaded?<br />
I have seen such things already: A tool (idc.exe) load <em>your</em> build dll and that dll has dependencies which perhaps can't be resolved...</p>
]]></description><link>https://forum.qt.io/post/113905</link><guid isPermaLink="true">https://forum.qt.io/post/113905</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Thu, 20 Oct 2011 11:58:54 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 11:05:41 GMT]]></title><description><![CDATA[<p dir="auto">Andre - thanks anyway, for taking the time to reply.</p>
<p dir="auto">Gerolf, I don't think it's a path problem, because I can copy the commands directly from the Visual Studio build window into the cmd prompt window and then they work. The commands in VS provide full paths.</p>
]]></description><link>https://forum.qt.io/post/113896</link><guid isPermaLink="true">https://forum.qt.io/post/113896</guid><dc:creator><![CDATA[Mr-Merlin]]></dc:creator><pubDate>Thu, 20 Oct 2011 11:05:41 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 11:03:05 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Mr-Merlin" date="1319098498"]It appears that when the post process calls are made to the IDL binary under Visual studio, it fails, but if I open a cmd prompt and type them myself, it then works!<br />
It's as though the post process commands aren't being run sequentially.<br />
[/quote]</p>
<p dir="auto">Sounds it's a path problem? If you enter a command line, do you use the Qt command line?</p>
<p dir="auto">Do you build typically by MSVS?</p>
]]></description><link>https://forum.qt.io/post/113895</link><guid isPermaLink="true">https://forum.qt.io/post/113895</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Thu, 20 Oct 2011 11:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 10:15:31 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I can not help you with that, as that is way outside of my experience zone. Good luck!</p>
]]></description><link>https://forum.qt.io/post/113885</link><guid isPermaLink="true">https://forum.qt.io/post/113885</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Thu, 20 Oct 2011 10:15:31 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 08:14:58 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, that was my first thought, but it's not the problem.</p>
<p dir="auto">It appears that when the post process calls are made to the IDL binary under Visual studio, it fails, but if I open a cmd prompt and type them myself, it then works!</p>
<p dir="auto">It's as though the post process commands aren't being run sequentially.</p>
]]></description><link>https://forum.qt.io/post/113867</link><guid isPermaLink="true">https://forum.qt.io/post/113867</guid><dc:creator><![CDATA[Mr-Merlin]]></dc:creator><pubDate>Thu, 20 Oct 2011 08:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to Missing meta object information with ActiveQt server on Thu, 20 Oct 2011 08:04:04 GMT]]></title><description><![CDATA[<p dir="auto"><em>Note</em>: I have no experience with ActiveQt.</p>
<p dir="auto">One reason why no metaobject is generated, could be that you forgot to include the Q_OBJECT macro?</p>
]]></description><link>https://forum.qt.io/post/113865</link><guid isPermaLink="true">https://forum.qt.io/post/113865</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Thu, 20 Oct 2011 08:04:04 GMT</pubDate></item></channel></rss>