<?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[Öffnen einer Datei]]></title><description><![CDATA[<p>Hi, ich hätte da eine Frage:<br />
Nämlch, wie kann ich von meinem Programm aus eine Datei öffnen. (z.B. ein BMP, oder eine EXE ect.)<br />
Ich ahbe von dem Befehl CreateFile gehört, kann mir da jemand weiterhelfen, wie ich das verwenden kann...</p>
<p>ThanX,<br />
Herbert&amp;Hugo <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/237280/öffnen-einer-datei</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 14:27:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/237280.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Mar 2009 16:55:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Öffnen einer Datei on Thu, 26 Mar 2009 16:55:15 GMT]]></title><description><![CDATA[<p>Hi, ich hätte da eine Frage:<br />
Nämlch, wie kann ich von meinem Programm aus eine Datei öffnen. (z.B. ein BMP, oder eine EXE ect.)<br />
Ich ahbe von dem Befehl CreateFile gehört, kann mir da jemand weiterhelfen, wie ich das verwenden kann...</p>
<p>ThanX,<br />
Herbert&amp;Hugo <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1686473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1686473</guid><dc:creator><![CDATA[Herbert&amp;amp;Hugo]]></dc:creator><pubDate>Thu, 26 Mar 2009 16:55:15 GMT</pubDate></item><item><title><![CDATA[Reply to Öffnen einer Datei on Thu, 26 Mar 2009 17:08:49 GMT]]></title><description><![CDATA[<p><a href="http://10.100.100.98:9014/actionpage?basictype=block&amp;epochseconds=1238087325&amp;requestedurl=http%3A%2F%2Fwww.lugbz.org%2Fdocuments%2Fsmart-questions_de.html&amp;categorylist=159&amp;categorydescriptionlist=Forum%2FBulletin%20Boards&amp;useripaddress=192.168.200.159&amp;username=&amp;actiontaken=block&amp;actionreason=by-category&amp;actionreasondata=159&amp;reputationdesc=&amp;replayhash=5xskT5vaCBNX4US6GBGVCg%3D%3D" rel="nofollow">Lies dir dass durch</a></p>
<p>Ansonsten <a href="http://www.google.de/search?q=C%2B%2B+Files&amp;safe=active" rel="nofollow">STFW</a></p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1686479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1686479</guid><dc:creator><![CDATA[Tobias Gerg]]></dc:creator><pubDate>Thu, 26 Mar 2009 17:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to Öffnen einer Datei on Thu, 26 Mar 2009 19:19:18 GMT]]></title><description><![CDATA[<p>Tobias Gerg schrieb:</p>
<blockquote>
<p><a href="http://10.100.100.98:9014/actionpage?basictype=block&amp;epochseconds=1238087325&amp;requestedurl=http%3A%2F%2Fwww.lugbz.org%2Fdocuments%2Fsmart-questions_de.html&amp;categorylist=159&amp;categorydescriptionlist=Forum%2FBulletin%20Boards&amp;useripaddress=192.168.200.159&amp;username=&amp;actiontaken=block&amp;actionreason=by-category&amp;actionreasondata=159&amp;reputationdesc=&amp;replayhash=5xskT5vaCBNX4US6GBGVCg%3D%3D" rel="nofollow">Lies dir dass durch</a></p>
</blockquote>
<p>Der Link geht nicht.</p>
<p>Ansonsten klingt es eher so, als wollte er die File mit dem verknüpften Programm öffnen bzw. die .exe ausführen.</p>
<p>Für letzeres kannst du std::system benutzen, für erstgenanntes irgendeine WinAPI Funktion. (Einfach mal googeln)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1686571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1686571</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Thu, 26 Mar 2009 19:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to Öffnen einer Datei on Thu, 26 Mar 2009 19:56:11 GMT]]></title><description><![CDATA[<p>Wenn du eine Datei <em>starten</em> willst, kannst du z.B. die WinApi Funktion &quot;ShellExecute&quot; benutzen. Wenn du den <em>Inhalt</em> aus dieser Datei haben möchtest, brauchst du fstream. Wenn du den Inhalt in <em>deinem</em> Programm einbauen willst, also sozusagen die Exe in deiner Exe haben willst, musste mit Resourcen arbeiten. Dafür musst du den WinApi Typ <em>HRSRC</em> benutzen, am besten dazu noch <em>HGLOBAL</em> und evtl. <em>LPBYTE</em>. Mit diesen Typen kannst du dann den <em>Inhalt</em> in deine Exe einbauen, natürlich brauche auch noch die anderen standard Typen wie DWORD usw.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1686611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1686611</guid><dc:creator><![CDATA[freaky]]></dc:creator><pubDate>Thu, 26 Mar 2009 19:56:11 GMT</pubDate></item></channel></rss>