<?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[Read a qt dll from a c# gui]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I've developed a class with Qt libraries and i want to use it in my c# gui. How can I do to solve this problem?</p>
]]></description><link>https://forum.qt.io/topic/25593/read-a-qt-dll-from-a-c-gui</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 13:34:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/25593.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Mar 2013 15:20:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Read a qt dll from a c# gui on Wed, 27 Mar 2013 10:29:27 GMT]]></title><description><![CDATA[<ol>
<li>
<p dir="auto">I installed in VS2010 the "VS Add-in with Qt5". In my vs2010 solution i have the project of the qt dll ("Qt Library" created inside VS2010), correctly compiled and linked.</p>
</li>
<li>
<p dir="auto">so i have done right.</p>
</li>
</ol>
<p dir="auto">I post i piece of the interface:</p>
<p dir="auto">#ifdef COMMQT_LIB</p>
<h1>define EXAMPLEUNMANAGEDDLL_API Q_DECL_EXPORT</h1>
<p dir="auto">#else</p>
<h1>define COMMQT_EXPORT Q_DECL_IMPORT</h1>
<p dir="auto">#endif</p>
<p dir="auto">#ifdef __cplusplus</p>
<p dir="auto">extern "C" {<br />
#endif</p>
<p dir="auto">extern EXAMPLEUNMANAGEDDLL_API Comm* CreateCommClass();<br />
extern EXAMPLEUNMANAGEDDLL_API void DisposeCommClass(Comm * pObject);<br />
extern EXAMPLEUNMANAGEDDLL_API int CommGetNumEvents(Comm * pObject);</p>
<p dir="auto">#ifdef __cplusplus<br />
}<br />
#endif</p>
<p dir="auto">Thankyou for your reply</p>
]]></description><link>https://forum.qt.io/post/171809</link><guid isPermaLink="true">https://forum.qt.io/post/171809</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 27 Mar 2013 10:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Read a qt dll from a c# gui on Wed, 27 Mar 2013 08:59:27 GMT]]></title><description><![CDATA[<ol>
<li>
<p dir="auto">what do you mean by qt library project ? if you have installed the binary distribution or if you have compiled qt correctly then you should have the qt library dlls at your hands</p>
</li>
<li>
<p dir="auto">no , to provide native ( qt or non qt ) functionality to a .net application it doesn't have to be a class it is easier to be just methods</p>
</li>
</ol>
]]></description><link>https://forum.qt.io/post/171784</link><guid isPermaLink="true">https://forum.qt.io/post/171784</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 27 Mar 2013 08:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to Read a qt dll from a c# gui on Wed, 27 Mar 2013 08:50:11 GMT]]></title><description><![CDATA[<p dir="auto">Thankyou for your answer. I have done it but it doesn't work.About i have some question:</p>
<ol>
<li>
<p dir="auto">I generated the dll using the "qt library" project inside vs2010. it is correct or have i to use the standard dll project of vs2010?</p>
</li>
<li>
<p dir="auto">the dll has an interface od functions...it is not a class. Have I to use the class for the interface?</p>
</li>
</ol>
<p dir="auto">I'm very confused. Thanks in advance</p>
]]></description><link>https://forum.qt.io/post/171780</link><guid isPermaLink="true">https://forum.qt.io/post/171780</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 27 Mar 2013 08:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Read a qt dll from a c# gui on Tue, 26 Mar 2013 17:07:29 GMT]]></title><description><![CDATA[<p dir="auto">this is not a question to be asked in Qt forum , your question is suited to be asked in a .net forum , but just a hint you should use Pinvoke technology to load the dll in a .net application make sure that all the qt modules dlls used in your qt dll and runtime dlls used is copied into the .net output folder</p>
]]></description><link>https://forum.qt.io/post/171659</link><guid isPermaLink="true">https://forum.qt.io/post/171659</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 26 Mar 2013 17:07:29 GMT</pubDate></item></channel></rss>