<?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[wininet ?]]></title><description><![CDATA[<p>Bei diesem Quellcode bekomme ich folgende Fehlermeldung ( wininet.lib ist im Linker eingebunden)</p>
<p>[/cpp]</p>
<pre><code>#include&lt;windows.h&gt;
#include&lt;wininet.h&gt;
#include&lt;stdio.h&gt; 
int main()
{

HINTERNET Initialize,Connection,File;
DWORD dwBytes;
char ch;

Initialize = InternetOpen(&quot;HTTPGET&quot;,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0);

Connection = InternetConnect(Initialize,&quot;www.yahoo.com&quot;,INTERNET_DEFAULT_HTTP_PORT,
NULL,NULL,INTERNET_SERVICE_HTTP,0,0);

File = HttpOpenRequest(Connection,NULL,&quot;/index.html&quot;,NULL,NULL,NULL,0,0);

if(HttpSendRequest(File,NULL,0,NULL,0))
{
while(InternetReadFile(File,&amp;ch,1,&amp;dwBytes))
{
if(dwBytes != 1)break;
putchar(ch);
}
}

InternetCloseHandle(File);
InternetCloseHandle(Connection);
InternetCloseHandle(Initialize);
return 0;
}
</code></pre>
<p>Fehlermeldung</p>
<p>libcd.lib(wincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WinMain@16<br />
Debug/xxx.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise<br />
Fehler beim Ausführen von link.exe.</p>
<p>xxx.exe - 2 Fehler, 0 Warnung(en)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/91644/wininet</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 05:44:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/91644.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Nov 2004 21:58:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wininet ? on Wed, 10 Nov 2004 21:58:24 GMT]]></title><description><![CDATA[<p>Bei diesem Quellcode bekomme ich folgende Fehlermeldung ( wininet.lib ist im Linker eingebunden)</p>
<p>[/cpp]</p>
<pre><code>#include&lt;windows.h&gt;
#include&lt;wininet.h&gt;
#include&lt;stdio.h&gt; 
int main()
{

HINTERNET Initialize,Connection,File;
DWORD dwBytes;
char ch;

Initialize = InternetOpen(&quot;HTTPGET&quot;,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0);

Connection = InternetConnect(Initialize,&quot;www.yahoo.com&quot;,INTERNET_DEFAULT_HTTP_PORT,
NULL,NULL,INTERNET_SERVICE_HTTP,0,0);

File = HttpOpenRequest(Connection,NULL,&quot;/index.html&quot;,NULL,NULL,NULL,0,0);

if(HttpSendRequest(File,NULL,0,NULL,0))
{
while(InternetReadFile(File,&amp;ch,1,&amp;dwBytes))
{
if(dwBytes != 1)break;
putchar(ch);
}
}

InternetCloseHandle(File);
InternetCloseHandle(Connection);
InternetCloseHandle(Initialize);
return 0;
}
</code></pre>
<p>Fehlermeldung</p>
<p>libcd.lib(wincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WinMain@16<br />
Debug/xxx.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise<br />
Fehler beim Ausführen von link.exe.</p>
<p>xxx.exe - 2 Fehler, 0 Warnung(en)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/649026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/649026</guid><dc:creator><![CDATA[mww]]></dc:creator><pubDate>Wed, 10 Nov 2004 21:58:24 GMT</pubDate></item><item><title><![CDATA[Reply to wininet ? on Wed, 10 Nov 2004 22:02:17 GMT]]></title><description><![CDATA[<p>Du hast eine Win32-Anwendung erstellt, aber dort nur eine main - also als Projekt Konsolenanwendung auswählen <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/649027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/649027</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 10 Nov 2004 22:02:17 GMT</pubDate></item><item><title><![CDATA[Reply to wininet ? on Fri, 03 Jun 2005 00:45:56 GMT]]></title><description><![CDATA[<p>Sagt mal was ist das für ein code?</p>
<p>Lädt der da die Datei runter? Und wenn ja wohin?</p>
<p>Ich hab das Programm mal getestet... läuft ohne Fehler! aber was macht es lol <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801466</guid><dc:creator><![CDATA[GboY]]></dc:creator><pubDate>Fri, 03 Jun 2005 00:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to wininet ? on Fri, 03 Jun 2005 08:36:46 GMT]]></title><description><![CDATA[<p>Na es schreibt das Zeugs in die Konsole mittels putchar(ch);<br />
...welche man bei Win32-Anwendungen gar nicht sieht <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=";D"
      alt="😉"
    /><br />
...daher sollte er auch besser ne Win32-Konsolenanwendung erzeugen (die main() statt WinMain() benutzt...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801576</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Fri, 03 Jun 2005 08:36:46 GMT</pubDate></item></channel></rss>