<?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[MIDL Frage]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich versuche eine COM DLL zu erstellen. Ich habe ein Interface für Klasse A erstellt und B. In B möchte ich nun eine Property erstellen wo ein Objekt von Typ A übergeben wird. Der Kompiler meldet:<br />
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a type specification near &quot;ClassA&quot;</p>
<p>Der Code:</p>
<blockquote>
<p>interface ClassB : IDispatch<br />
{<br />
[propget, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([out, retval] ClassA *pVal);<br />
[propput, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([in] ClassA newVal);<br />
};</p>
</blockquote>
<p>Was muß ich machen damit ich ein Objekt vom Typ ClassA über die Schnittstelle von ClassB schicken kann?</p>
<p>Vielen Dank</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189011/midl-frage</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 21:24:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189011.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Aug 2007 13:19:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MIDL Frage on Tue, 07 Aug 2007 13:19:07 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich versuche eine COM DLL zu erstellen. Ich habe ein Interface für Klasse A erstellt und B. In B möchte ich nun eine Property erstellen wo ein Objekt von Typ A übergeben wird. Der Kompiler meldet:<br />
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a type specification near &quot;ClassA&quot;</p>
<p>Der Code:</p>
<blockquote>
<p>interface ClassB : IDispatch<br />
{<br />
[propget, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([out, retval] ClassA *pVal);<br />
[propput, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([in] ClassA newVal);<br />
};</p>
</blockquote>
<p>Was muß ich machen damit ich ein Objekt vom Typ ClassA über die Schnittstelle von ClassB schicken kann?</p>
<p>Vielen Dank</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340174</guid><dc:creator><![CDATA[martinsalo]]></dc:creator><pubDate>Tue, 07 Aug 2007 13:19:07 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Tue, 07 Aug 2007 18:08:55 GMT]]></title><description><![CDATA[<p>Ich hätte es jetzt eher so definiert:</p>
<pre><code class="language-cpp">interface ClassB : IDispatch 
{ 
[propget, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([out, retval] ClassA **ppVal); 
[propput, id(1), helpstring(&quot;property A&quot;)] HRESULT Head([in] ClassA *newVal); 
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1340363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340363</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 07 Aug 2007 18:08:55 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Tue, 07 Aug 2007 18:19:23 GMT]]></title><description><![CDATA[<p>Ok, aber der Fehler sagt doch aus das der Compiler ClassA nicht kennt? (Bin gerade zuhause und habe das Projekt nicht hier.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340366</guid><dc:creator><![CDATA[martin_salo]]></dc:creator><pubDate>Tue, 07 Aug 2007 18:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Tue, 07 Aug 2007 19:39:20 GMT]]></title><description><![CDATA[<p>Wo hast Du denn die ClassA deklariert? davor oder danach?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340409</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 07 Aug 2007 19:39:20 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Tue, 07 Aug 2007 19:45:39 GMT]]></title><description><![CDATA[<p>Kann ich erst morgen sagen bzw. ich werde sie morgen vertauschen.<br />
Wen nes aber auf die Reihenfolge ankäme, könnte ich dann ClassA kein Objekt mehr von ClassB übergeben.</p>
<p>Wenn ich #include &quot;ClassA.h&quot; schreibe kriege ich jede Menge Fehlermeldungen. Unter anderem das das Keywort class nicht erkannt wurde. Irgendwo im Inet stand das IDL so wie C sei, also keine Klassen kennen würde. Ich habe mir einige Beispiel idl Dateien angesehen, da waren eine Menge structs drinn ich konnte aber keine Klassen finden. Werden Klassenobjekte vielleicht irgendwie anders übertragen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340416</guid><dc:creator><![CDATA[martin_salo]]></dc:creator><pubDate>Tue, 07 Aug 2007 19:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Wed, 08 Aug 2007 09:27:05 GMT]]></title><description><![CDATA[<p>Ich habe ein Testprojekt erstellt. Von der Reichenfolge scheint es nicht abzuhängen:<br />
<a href="http://freenet-homepage.de/kuh_an_wand/" rel="nofollow">http://freenet-homepage.de/kuh_an_wand/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340614</guid><dc:creator><![CDATA[martinsalo]]></dc:creator><pubDate>Wed, 08 Aug 2007 09:27:05 GMT</pubDate></item><item><title><![CDATA[Reply to MIDL Frage on Wed, 08 Aug 2007 15:34:01 GMT]]></title><description><![CDATA[<p>Hat sich erledigt. Es kommt doch auf die Reihenfolge an. Ausserdem werden die Interfaces bei der Übergabe benutzt und nicht die Klassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340931</guid><dc:creator><![CDATA[martinsalo]]></dc:creator><pubDate>Wed, 08 Aug 2007 15:34:01 GMT</pubDate></item></channel></rss>