<?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[Dateiname falsche Variable]]></title><description><![CDATA[<p>Hi,<br />
habe jetzt schon lange das Forum und die FAQ durchsucht, aber komme einfach nicht drauf ... obwohl es so ein BILLIG problem ist...:<br />
Ich möchte durch einen OpenDialog eine Datei öffnen können, die dann in etwa so geöffnet werden soll:</p>
<pre><code class="language-cpp">Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;, OpenDialog1-&gt;Files );
</code></pre>
<p>der Code selber:</p>
<pre><code class="language-cpp">OpenDialog1-&gt;Execute();

Variant Excel;
        Excel = Variant::CreateObject(&quot;Excel.Application&quot;);
        Excel.OlePropertyGet(&quot;ActiveWorkBook&quot;);
        // Excel-Datei öffnen
        Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;, OpenDialog1-&gt;FileName );
        // Sichtbar machen
        Excel.OlePropertySet(&quot;Visible&quot;,1);
        Variant Sheet;
        Sheet=Excel.OlePropertyGet(&quot;ActiveSheet&quot;);
        ShowMessage(Sheet.OlePropertyGet(&quot;Cells&quot;,1,1).OlePropertyGet(&quot;Value&quot;));
</code></pre>
<p>Edit: Mein Problem hierbei ist, dass er mir sagt dass er einen falschen Variablen typ bekommt ... OpenDialog1-&gt;FileName ist ein AnsiString...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/49753/dateiname-falsche-variable</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 21:24:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/49753.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Sep 2003 08:26:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dateiname falsche Variable on Tue, 23 Sep 2003 08:32:37 GMT]]></title><description><![CDATA[<p>Hi,<br />
habe jetzt schon lange das Forum und die FAQ durchsucht, aber komme einfach nicht drauf ... obwohl es so ein BILLIG problem ist...:<br />
Ich möchte durch einen OpenDialog eine Datei öffnen können, die dann in etwa so geöffnet werden soll:</p>
<pre><code class="language-cpp">Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;, OpenDialog1-&gt;Files );
</code></pre>
<p>der Code selber:</p>
<pre><code class="language-cpp">OpenDialog1-&gt;Execute();

Variant Excel;
        Excel = Variant::CreateObject(&quot;Excel.Application&quot;);
        Excel.OlePropertyGet(&quot;ActiveWorkBook&quot;);
        // Excel-Datei öffnen
        Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;, OpenDialog1-&gt;FileName );
        // Sichtbar machen
        Excel.OlePropertySet(&quot;Visible&quot;,1);
        Variant Sheet;
        Sheet=Excel.OlePropertyGet(&quot;ActiveSheet&quot;);
        ShowMessage(Sheet.OlePropertyGet(&quot;Cells&quot;,1,1).OlePropertyGet(&quot;Value&quot;));
</code></pre>
<p>Edit: Mein Problem hierbei ist, dass er mir sagt dass er einen falschen Variablen typ bekommt ... OpenDialog1-&gt;FileName ist ein AnsiString...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/358633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/358633</guid><dc:creator><![CDATA[Hunter666]]></dc:creator><pubDate>Tue, 23 Sep 2003 08:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiname falsche Variable on Tue, 23 Sep 2003 08:39:58 GMT]]></title><description><![CDATA[<p>Danke habs schon... (ich Idiot...)</p>
<p>folgendes:</p>
<pre><code class="language-cpp">Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;, OpenDialog1-&gt;FileName.c_str());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/358646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/358646</guid><dc:creator><![CDATA[Hunter666]]></dc:creator><pubDate>Tue, 23 Sep 2003 08:39:58 GMT</pubDate></item></channel></rss>