<?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[Folgender Code verursacht sofortigen Absturz des Programms...]]></title><description><![CDATA[<pre><code>typedef bool (* DLLFUNCTION1PROC)(LPDWORD dwFlag, DWORD dwReserved);
.
.
.
.
.

HMODULE hDLL; 
DLLFUNCTION1PROC dllf = NULL; 

hDLL= LoadLibrary(&quot;WININET.DLL&quot;); 
    if (hMyLib == NULL) { 
        return false; 
    } 
    dllf = (DLLFUNCTION1PROC)GetProcAddress(hDLL, TEXT(&quot;InternetGetConnectedState&quot;)); 
    if (dllf == NULL) { 
        return false; 
    } 

DWORD fff;
    if((dllf(&amp;fff, NULL)))
        Beep(122,222); // Dieses Beep wird ausgeführt und die Funktion läuft wie sie soll.

//Wieso verdammt sturzt der ab?

    FreeLibrary(hDLL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/76697/folgender-code-verursacht-sofortigen-absturz-des-programms</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 11:43:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76697.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jun 2004 12:22:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:22:42 GMT]]></title><description><![CDATA[<pre><code>typedef bool (* DLLFUNCTION1PROC)(LPDWORD dwFlag, DWORD dwReserved);
.
.
.
.
.

HMODULE hDLL; 
DLLFUNCTION1PROC dllf = NULL; 

hDLL= LoadLibrary(&quot;WININET.DLL&quot;); 
    if (hMyLib == NULL) { 
        return false; 
    } 
    dllf = (DLLFUNCTION1PROC)GetProcAddress(hDLL, TEXT(&quot;InternetGetConnectedState&quot;)); 
    if (dllf == NULL) { 
        return false; 
    } 

DWORD fff;
    if((dllf(&amp;fff, NULL)))
        Beep(122,222); // Dieses Beep wird ausgeführt und die Funktion läuft wie sie soll.

//Wieso verdammt sturzt der ab?

    FreeLibrary(hDLL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/539852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539852</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:22:42 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:26:56 GMT]]></title><description><![CDATA[<p>STDCALL / WINAPI vergessen. glaub es muss hier hin:</p>
<p>typedef bool (WINAPI * DLLFUNCTION1PROC)(LPDWORD dwFlag, DWORD dwReserved);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539857</guid><dc:creator><![CDATA[asdf]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:29:39 GMT]]></title><description><![CDATA[<p>Außerdem gehört da 'BOOL' hin und nicht 'bool'.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539862</guid><dc:creator><![CDATA[Aziz]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:33:12 GMT]]></title><description><![CDATA[<p>Ist bool nicht gleich BOOL also</p>
<p>typedef bool BOOL; //ist doch so!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539872</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:33:12 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:33:50 GMT]]></title><description><![CDATA[<p>Nein, momentan BOOL == int</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539876</guid><dc:creator><![CDATA[..]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:33:50 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 12:36:34 GMT]]></title><description><![CDATA[<p>Danke Gast.<br />
der WINAPI* musste hin. Das hat das Problem gelöst.<br />
(nett wäre es wenn jmd. erklären könnte WIESO das nötig ist.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539879</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 13:01:24 GMT]]></title><description><![CDATA[<p><a href="http://www.codeproject.com/cpp/calling_conventions_demystified.asp" rel="nofollow">http://www.codeproject.com/cpp/calling_conventions_demystified.asp</a></p>
<p>WINAPI == __stdcall</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539912</guid><dc:creator><![CDATA[Gast3425]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:01:24 GMT</pubDate></item><item><title><![CDATA[Reply to Folgender Code verursacht sofortigen Absturz des Programms... on Mon, 14 Jun 2004 13:27:34 GMT]]></title><description><![CDATA[<p>Hi, Danke vielmals. Kaum zu glauben wie viel man über dieses Forum in kürzester Zeit lernen kann. Ich denke hier lerne ich in 1 Std. mehr als in einer Woche in der Schule. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/539948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539948</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:27:34 GMT</pubDate></item></channel></rss>