<?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[winExec() geht nicht so richtig??]]></title><description><![CDATA[<p>hallo zusammen!</p>
<p>hat jemand eine ahnung warum dieser code nicht geht? es tut sich einfach gar nichts...</p>
<pre><code class="language-cpp">CString path;
	path = m_GetPath();
	path = &quot;D:\\testsheet.xls&quot;;
	WinExec(path, SW_SHOWNORMAL);
</code></pre>
<p>ich möchte als per button ein ganz bestimmtes excel sheet öffnen.</p>
<p>danke schonmal<br />
looP</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/78773/winexec-geht-nicht-so-richtig</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:01:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/78773.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Jul 2004 09:59:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to winExec() geht nicht so richtig?? on Mon, 05 Jul 2004 09:59:45 GMT]]></title><description><![CDATA[<p>hallo zusammen!</p>
<p>hat jemand eine ahnung warum dieser code nicht geht? es tut sich einfach gar nichts...</p>
<pre><code class="language-cpp">CString path;
	path = m_GetPath();
	path = &quot;D:\\testsheet.xls&quot;;
	WinExec(path, SW_SHOWNORMAL);
</code></pre>
<p>ich möchte als per button ein ganz bestimmtes excel sheet öffnen.</p>
<p>danke schonmal<br />
looP</p>
]]></description><link>https://www.c-plusplus.net/forum/post/553471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/553471</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Mon, 05 Jul 2004 09:59:45 GMT</pubDate></item><item><title><![CDATA[Reply to winExec() geht nicht so richtig?? on Mon, 05 Jul 2004 10:03:18 GMT]]></title><description><![CDATA[<p>ShellExecute brauchst du</p>
]]></description><link>https://www.c-plusplus.net/forum/post/553474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/553474</guid><dc:creator><![CDATA[!!!!!!!!!!!!!!]]></dc:creator><pubDate>Mon, 05 Jul 2004 10:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to winExec() geht nicht so richtig?? on Mon, 05 Jul 2004 10:19:34 GMT]]></title><description><![CDATA[<p>Was macht denn<br />
path = m_GetPath();<br />
? So wie es jetzt da steht bringt das nix, weil in der nächsten Zeile path gleich wieder überschrieben wird, egal, was auch immer m_GetPath() zurück gibt.</p>
<p>Und damit WinExec funktioniert, musst du den Pfad zur EXE mit übergeben und das Sheet als Parameter, etwa so:</p>
<pre><code class="language-cpp">CString path; 
path = &quot;C:\\Programme\\Microsoft Office\\Office\\EXCEL.EXE E:\\Ordner\\testsheet.xls&quot;; 
WinExec(path, SW_SHOWNORMAL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/553486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/553486</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Mon, 05 Jul 2004 10:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to winExec() geht nicht so richtig?? on Mon, 05 Jul 2004 10:38:59 GMT]]></title><description><![CDATA[<p>ja stimmt, hab mich nicht richtig ausgedrückt. getPath() gibt den aktuellen pfad des programms zurück, ich habe es hier absichtlich überschrieben für testzwecke. Mein Problem ist das ich nicht ganz genau wissen kann wo der user sein excel installiert hat....</p>
<p>werd jetzt mal das shell execute ausprobieren, danke nochmal<br />
lg looP</p>
]]></description><link>https://www.c-plusplus.net/forum/post/553505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/553505</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Mon, 05 Jul 2004 10:38:59 GMT</pubDate></item></channel></rss>