<?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[stdafx.h UND afxinet.h will nicht]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>mein Problem: Im Prinzip hab ich ein fertiges Code-Schnipsel welches den Quellcode einer Website downloaded und auf C speichert..dafür brauch ich allerdings die im Titel angeführten Lib!</p>
<p>Die habe ich auch gefunden und hinzugefügt das Code:Blocks sie nicht erkannt hat.. nun zum Problem..beim Compil. stöst er immer wieder auf fehlende Lib, welche in stdafx und afxinet angeführt und included werden sollen. mühselig hab ich schon zig lib übers inet hinzugefügt nur es fehlen noch viele und die crtdbg.h findet er gar nicht, auch wenn ich sie hinzufüge... Nun zur Frage: Kennt wer vll ein fertiges Paket mit den zwei oben angeführten Lib inklusive aller Lib die diese benötigen ? Danke und LG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/321166/stdafx-h-und-afxinet-h-will-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 00:06:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/321166.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Oct 2013 10:15:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sat, 26 Oct 2013 10:16:02 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>mein Problem: Im Prinzip hab ich ein fertiges Code-Schnipsel welches den Quellcode einer Website downloaded und auf C speichert..dafür brauch ich allerdings die im Titel angeführten Lib!</p>
<p>Die habe ich auch gefunden und hinzugefügt das Code:Blocks sie nicht erkannt hat.. nun zum Problem..beim Compil. stöst er immer wieder auf fehlende Lib, welche in stdafx und afxinet angeführt und included werden sollen. mühselig hab ich schon zig lib übers inet hinzugefügt nur es fehlen noch viele und die crtdbg.h findet er gar nicht, auch wenn ich sie hinzufüge... Nun zur Frage: Kennt wer vll ein fertiges Paket mit den zwei oben angeführten Lib inklusive aller Lib die diese benötigen ? Danke und LG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363049</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sat, 26 Oct 2013 10:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sat, 26 Oct 2013 10:18:22 GMT]]></title><description><![CDATA[<p>stdafx.h sind die vorcompilierten bibliotheken von visual studo. die kannst du nicht verwenden.</p>
<p>einfach den Header entfernen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363050</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Sat, 26 Oct 2013 10:18:22 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sat, 26 Oct 2013 10:26:22 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>stdafx.h sind die vorcompilierten bibliotheken von visual studo. die kannst du nicht verwenden.</p>
<p>einfach den Header entfernen.</p>
</blockquote>
<p>Danke für die schnelle Antwort.. trotzdem wirft er mir beim Comp. Fehler in dem Code-Schnipsel vor.. ich weiß, man sollte sich dass selber beibringen und ned irgendwas kopieren..aber da ich erst vor ner Woche angefangen habe und ich dass jetzt brauche ..habe ich die Funktion einfach mal übernommen..bei einem anderen im Forum, vonwo ichd as Schnipsel herhabe hats funktioniert..</p>
<pre><code>BOOL GetSourceHtml(CString theUrl)
{
 // this first block does the actual work
 CInternetSession session;
 CInternetFile* file = NULL;
 try
 {
  // try to connect to the URL
  file = (CInternetFile*) session.OpenURL(theUrl);
 }
 catch (CInternetException* m_pException)
 {
  // set file to NULL if there's an error
  file = NULL;
  m_pException-&gt;Delete();
 }

 // most of the following deals with storing the html to a file
 CStdioFile dataStore;

 if (file)
 {
  CString somecode;

  BOOL bIsOk = dataStore.Open(_T(&quot;C:\\rawHtml.txt&quot;),
                              CFile::modeCreate
                              | CFile::modeWrite
                              | CFile::shareDenyWrite
                              | CFile::typeText);

  if (!bIsOk)
   return FALSE;

  // continue fetching code until there is no more
  while (file-&gt;ReadString(somecode) != NULL)
  {
   dataStore.WriteString(somecode);
  }

  file-&gt;Close();
  delete file;
 }
 else
 {
  dataStore.WriteString(_T(&quot;Could not establish a connection with the server...&quot;));
 }
}
</code></pre>
<p>Er sagt zB error: BOOL does not name a type.. Danach sind dass für mich nur typische Alarme, welche dahergehen..dass er die Funktion nicht erkennt. LG Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363052</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sat, 26 Oct 2013 10:26:22 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sat, 26 Oct 2013 10:28:24 GMT]]></title><description><![CDATA[<pre><code>#include &lt;Windows.h&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2363054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363054</guid><dc:creator><![CDATA[nwp3]]></dc:creator><pubDate>Sat, 26 Oct 2013 10:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 07:58:29 GMT]]></title><description><![CDATA[<p>nwp3 schrieb:</p>
<blockquote>
<pre><code>#include &lt;Windows.h&gt;
</code></pre>
</blockquote>
<p>hallo nwp3,</p>
<p>es funktioniert trotzdem nicht.. ich rufe in der main Funktion die Funktion dann zB so auf: GetSourceHtml(_T(&quot;<a href="http://www.google.at" rel="nofollow">http://www.google.at</a>&quot;)); und er gibt mir wieder Errors.<br />
Muss ich nicht sonst noch irgendwas in der Funktion ändern zB</p>
<pre><code>BOOL GetSourceHtml(CString theUrl)
</code></pre>
<p>Das ist doch keine normale Variablendeklaration zur Variablenübergabe.. Hab das theUrl weggenommen dann sagt er mir error:<br />
CInternetSession session - first use in this function.. also erkennt er sie nicht..</p>
<p>kann mir wer helfen..ich will einfach nur eine website downloaden..ob in ein textfile oder in ein STring ist mir egal... brauche nur das funktionierende Codeschnipsel dafür. Danke !!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363239</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sun, 27 Oct 2013 07:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 08:17:50 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>der Code ist für <a href="http://de.wikipedia.org/wiki/Microsoft_Foundation_Classes" rel="nofollow">MFC</a>, d.h. ich glaube kaum, daß es diese Lib für Code:Blocks gibt.</p>
<p>P.S: Probiere mal die Funktion <a href="http://msdn.microsoft.com/en-us/library/ms775123%28v=vs.85%29.aspx" rel="nofollow">URLDownloadToFile</a> aus.<br />
Unter <a href="http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c" rel="nofollow">http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c</a> gibt es ein Beispiel für die Benutzung (auch hier &lt;windows.h&gt; includen und evtl. händisch urlmon.lib dem Linker mitgeben).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363241</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sun, 27 Oct 2013 08:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 08:34:11 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>der Code ist für <a href="http://de.wikipedia.org/wiki/Microsoft_Foundation_Classes" rel="nofollow">MFC</a>, d.h. ich glaube kaum, daß es diese Lib für Code:Blocks gibt.</p>
<p>P.S: Probiere mal die Funktion <a href="http://msdn.microsoft.com/en-us/library/ms775123%28v=vs.85%29.aspx" rel="nofollow">URLDownloadToFile</a> aus.<br />
Unter <a href="http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c" rel="nofollow">http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c</a> gibt es ein Beispiel für die Benutzung (auch hier &lt;windows.h&gt; includen und evtl. händisch urlmon.lib dem Linker mitgeben).</p>
</blockquote>
<p>Hallo, dass mit urlmon.h hatte ich auch schon..da hatte er dann auch etliche Lib nicht erkannt... und wie kann ich die urlmon.lib händisch hinzufügen lg mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363243</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sun, 27 Oct 2013 08:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 08:36:10 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>der Code ist für <a href="http://de.wikipedia.org/wiki/Microsoft_Foundation_Classes" rel="nofollow">MFC</a>, d.h. ich glaube kaum, daß es diese Lib für Code:Blocks gibt.</p>
<p>P.S: Probiere mal die Funktion <a href="http://msdn.microsoft.com/en-us/library/ms775123%28v=vs.85%29.aspx" rel="nofollow">URLDownloadToFile</a> aus.<br />
Unter <a href="http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c" rel="nofollow">http://stackoverflow.com/questions/18361328/download-file-to-temp-dir-in-c</a> gibt es ein Beispiel für die Benutzung (auch hier &lt;windows.h&gt; includen und evtl. händisch urlmon.lib dem Linker mitgeben).</p>
</blockquote>
<p>Hallo, dass mit urlmon.h hatte ich auch schon..da hatte er dann auch etliche lib (in form von xxx.h) nicht erkannt... und wie kann ich die urlmon.lib händisch hinzufügen lg mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363245</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sun, 27 Oct 2013 08:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 09:10:38 GMT]]></title><description><![CDATA[<p>Ich glaube,du bist noch nicht weit genug für sowas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363251</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Sun, 27 Oct 2013 09:10:38 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Sun, 27 Oct 2013 09:29:18 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>Ich glaube,du bist noch nicht weit genug für sowas.</p>
</blockquote>
<p>Bin ich sicher nicht otze ! Aber ich wüerde das jetzt gern Umsetzen..alles andere habe ich schon geschrieben mir fehlt nur dieser Teil und ich wollt mich jetzt ned 4 Wochen einlesen für etwas was ich jetzt brauche, vll verstehst du das. LG Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363257</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363257</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Sun, 27 Oct 2013 09:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Mon, 28 Oct 2013 09:49:07 GMT]]></title><description><![CDATA[<p>Niemand eine Idee? LG Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363435</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Mon, 28 Oct 2013 09:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Mon, 28 Oct 2013 10:02:39 GMT]]></title><description><![CDATA[<p>So wie ich das einschätze ist das nicht soooo kompliziert. Schau dir mal die Internet Funktionen der Windows API an:</p>
<p><code>InternetOpen</code> , <code>InternetOpenUrl</code> , <code>InternetReadFile</code> und <code>InternetCloseHandle</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363439</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Mon, 28 Oct 2013 10:02:39 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Mon, 28 Oct 2013 19:09:06 GMT]]></title><description><![CDATA[<p>DocShoe schrieb:</p>
<blockquote>
<p>So wie ich das einschätze ist das nicht soooo kompliziert. Schau dir mal die Internet Funktionen der Windows API an:</p>
<p><code>InternetOpen</code> , <code>InternetOpenUrl</code> , <code>InternetReadFile</code> und <code>InternetCloseHandle</code></p>
</blockquote>
<p>Dafür brauch ich aber Visual Studio richtig ? LG Mike Habe ich nicht.. hab derzeit nur Code:Blocks und keine guten Erfahrungen mich Visual Studio downloads</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363572</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Mon, 28 Oct 2013 19:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Mon, 28 Oct 2013 20:06:23 GMT]]></title><description><![CDATA[<p>Nee, geht auch mit Code::Blocks.<br />
Enfach windows.h includen - oder einen anderen Header, in dem die drinstehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363589</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Mon, 28 Oct 2013 20:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 05:58:39 GMT]]></title><description><![CDATA[<p>Ok, aber warum kann ich die Funktion die ich ganz am Anfang gepostet habe nicht einfügen ?? Bei</p>
<pre><code>BOOL GetSourceHtml(CString theUrl) 
{ 
 // this first block does the actual work
...
</code></pre>
<p>Bool gibt er mir einen Error aus, obwohl ich das richtige Übergebe..</p>
<p>er sagt error: CSTRING was not declared in this scope.. LG Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363625</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Tue, 29 Oct 2013 05:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 06:27:56 GMT]]></title><description><![CDATA[<p>Es gibt ja auch nichts, was CString heißt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363626</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Tue, 29 Oct 2013 06:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 06:41:23 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Es gibt ja auch nichts, was CString heißt.</p>
</blockquote>
<p>Was soll ich denn stattdessen einfügen, ich versteh nicht.. bei dem USER in einen anderen Forum(gefunden per google) hats auch funktioniert und er hat das so reinkopiert nur leicht abgeändert... ich dachte dass ist der Übergabeparameter der Funktion nur halt durch eine bestimmte LIB sieht er anders aus als, ich denke da jetzt banal an int summe(int a, int b)... Kannst du mir erklären wie ich mein Problem löse und die funktion zum Laufen bringe ? LG Mike</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363627</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Tue, 29 Oct 2013 06:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 06:57:08 GMT]]></title><description><![CDATA[<p>Verwende const char* oder std::string.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363629</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Tue, 29 Oct 2013 06:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 06:59:50 GMT]]></title><description><![CDATA[<p>Ich glaube ich verstehe.. habe ihm jetzt char theUrl übergeben:</p>
<pre><code>BOOL GetSourceHtml(char theUrl)
</code></pre>
<p>doch dann schreit er bei:</p>
<pre><code>CInternetSession session;
CInternetFile* file = NULL;
</code></pre>
<p>dass er die Funktion nicht kennt, also fehlt ihm eine oder mehrere Libaries.. welche ? Ist es stdafx.h und afxinet.h? Und wo bekomme ichd as komplett-paket für die beiden lib her.. LG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363631</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Tue, 29 Oct 2013 06:59:50 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 07:27:27 GMT]]></title><description><![CDATA[<p>Ach so.<br />
Der Code ist für die MFC gedacht.<br />
Die brauchst du wohl. Oder du nimmst die WinAPI.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363633</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Tue, 29 Oct 2013 07:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 07:54:42 GMT]]></title><description><![CDATA[<p>windows.h ist included falls du dass meinst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363635</guid><dc:creator><![CDATA[MikeTheT]]></dc:creator><pubDate>Tue, 29 Oct 2013 07:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 11:35:55 GMT]]></title><description><![CDATA[<p>Ja, das bringt aber nichts, solang du nur die Sachen der MFC verwendest.<br />
Google: c++ winapi &lt;was du tun willst auf englisch&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363670</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Tue, 29 Oct 2013 11:35:55 GMT</pubDate></item><item><title><![CDATA[Reply to stdafx.h UND afxinet.h will nicht on Tue, 29 Oct 2013 12:31:45 GMT]]></title><description><![CDATA[<p>Viele MFC Klassen sind Wrapper um die passenden Win API Funktionen. Um den Code MFC-frei zu machen musst du sämtliche Typen, die mit <code>C</code> anfangen ( <code>CString</code> , <code>CInternetSession</code> , etc. ) durch die passenden Win API Aufrufe ersetzen. Dazu musst du aber prinzipiell verstehen, <em>was</em> welche Funktion macht und welche Parameter sie erwartet. Inzwischen bin ich otzes Meinung, du bist noch nicht weit genug dafür, weil dir Grundlagen fehlen.<br />
Vielleicht solltest du dich zuerst an einem einfacherem Problem versuchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2363685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2363685</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Tue, 29 Oct 2013 12:31:45 GMT</pubDate></item></channel></rss>