<?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[bitte helfen!]]></title><description><![CDATA[<pre><code>int Updateexe ()
{
DWORD dwFileSize,
      dwBytesWritten;
HANDLE hFile;
char *lpBuffer;

hFile = BeginUpdateResource(L&quot;test.exe&quot;, FALSE);
if (NULL != hFile)
{
    if (UpdateResource(hFile, 
        RT_RCDATA, 
        MAKEINTRESOURCE(104), 
        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
        (LPVOID) lpBuffer, 
        dwFileSize) != FALSE)
    {
        EndUpdateResource(hFile, FALSE);
    }
}
hFile = CreateFile(L&quot;test.exe&quot;,
                   FILE_EXECUTE,
                   FILE_SHARE_WRITE,
                   NULL,
                   CREATE_ALWAYS,
                   FILE_ATTRIBUTE_NORMAL,
                   NULL);

if (INVALID_HANDLE_VALUE != hFile)
{
    WriteFile(hFile, lpBuffer, dwFileSize, &amp;dwBytesWritten, NULL);

    CloseHandle(hFile);
}
return 0;
}
</code></pre>
<p>hallo,<br />
gehen wir mal davon aus das die exe den code ausführen soll</p>
<pre><code>{MessageBox(hwnd,TEXT(&quot;TEST&quot;),TEXT(&quot;TEST&quot;),0);
return 0;}
</code></pre>
<p>wo schreib ich die funktion in die exe rein?<br />
kann ich auch statt ne test.exe z.b code.cpp updaten?<br />
ich versteh das nicht,kann mir das nicht einer mal ausführlich erklären?bitte....</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/150697/bitte-helfen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 17:13:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150697.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jun 2006 14:39:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bitte helfen! on Mon, 19 Jun 2006 14:39:32 GMT]]></title><description><![CDATA[<pre><code>int Updateexe ()
{
DWORD dwFileSize,
      dwBytesWritten;
HANDLE hFile;
char *lpBuffer;

hFile = BeginUpdateResource(L&quot;test.exe&quot;, FALSE);
if (NULL != hFile)
{
    if (UpdateResource(hFile, 
        RT_RCDATA, 
        MAKEINTRESOURCE(104), 
        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
        (LPVOID) lpBuffer, 
        dwFileSize) != FALSE)
    {
        EndUpdateResource(hFile, FALSE);
    }
}
hFile = CreateFile(L&quot;test.exe&quot;,
                   FILE_EXECUTE,
                   FILE_SHARE_WRITE,
                   NULL,
                   CREATE_ALWAYS,
                   FILE_ATTRIBUTE_NORMAL,
                   NULL);

if (INVALID_HANDLE_VALUE != hFile)
{
    WriteFile(hFile, lpBuffer, dwFileSize, &amp;dwBytesWritten, NULL);

    CloseHandle(hFile);
}
return 0;
}
</code></pre>
<p>hallo,<br />
gehen wir mal davon aus das die exe den code ausführen soll</p>
<pre><code>{MessageBox(hwnd,TEXT(&quot;TEST&quot;),TEXT(&quot;TEST&quot;),0);
return 0;}
</code></pre>
<p>wo schreib ich die funktion in die exe rein?<br />
kann ich auch statt ne test.exe z.b code.cpp updaten?<br />
ich versteh das nicht,kann mir das nicht einer mal ausführlich erklären?bitte....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080682</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Mon, 19 Jun 2006 14:39:32 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helfen! on Mon, 19 Jun 2006 14:41:51 GMT]]></title><description><![CDATA[<p>Das wirst du nicht schaffen. Mach es mit ner Konfigurationsdatei...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080684</guid><dc:creator><![CDATA[..........]]></dc:creator><pubDate>Mon, 19 Jun 2006 14:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helfen! on Mon, 19 Jun 2006 15:04:30 GMT]]></title><description><![CDATA[<p>meinst du build-system? gibs dazu dokumentationen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080698</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Mon, 19 Jun 2006 15:04:30 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helfen! on Mon, 19 Jun 2006 15:36:37 GMT]]></title><description><![CDATA[<p>Ich meine du könntest eine Konfigurationsdatei schreiben:</p>
<pre><code>ShowMessageBox = True
MessageBoxText = &quot;TEST&quot;
MessageBoxTitel = &quot;TEST&quot;
</code></pre>
<p>Die kannst du mit UpdateResource in deine Exe schreiben. Die Exe kann diese Datei wieder auslesen und interpretieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1080723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080723</guid><dc:creator><![CDATA[......]]></dc:creator><pubDate>Mon, 19 Jun 2006 15:36:37 GMT</pubDate></item></channel></rss>