<?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[Überlagerung der Main]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe bei dieser Source das der Compiler sagt das WinMain nicht überlagert werden darf. Ich hab aber keinen Plan wie der dadrauf kommt das es überlagert wird.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{	
	return 0;
}

void standard(int argc,char* argv[])
{
	// TODO: Place code here.
	cout&lt;&lt;&quot;Geben Sie einen Dateinamen (ohne Leerzeichen!) ein:\n&quot;;
	string strFileName;
	cin &gt;&gt; strFileName;
	ifstream file;
	file.open(strFileName.c_str());
	if(file.is_open())
	{
		while(!file.eof())
		{
			string strLine;
			getline(file,strLine);
			cout &lt;&lt; strLine &lt;&lt; endl;
		}
	}
	else
	{
		cout &lt;&lt; &quot;Die Datei kann nicht geöffnet werden.\n&quot;;
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/65638/überlagerung-der-main</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 13:17:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/65638.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Feb 2004 15:38:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überlagerung der Main on Fri, 20 Feb 2004 15:38:52 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe bei dieser Source das der Compiler sagt das WinMain nicht überlagert werden darf. Ich hab aber keinen Plan wie der dadrauf kommt das es überlagert wird.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{	
	return 0;
}

void standard(int argc,char* argv[])
{
	// TODO: Place code here.
	cout&lt;&lt;&quot;Geben Sie einen Dateinamen (ohne Leerzeichen!) ein:\n&quot;;
	string strFileName;
	cin &gt;&gt; strFileName;
	ifstream file;
	file.open(strFileName.c_str());
	if(file.is_open())
	{
		while(!file.eof())
		{
			string strLine;
			getline(file,strLine);
			cout &lt;&lt; strLine &lt;&lt; endl;
		}
	}
	else
	{
		cout &lt;&lt; &quot;Die Datei kann nicht geöffnet werden.\n&quot;;
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/464183</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/464183</guid><dc:creator><![CDATA[Buddy]]></dc:creator><pubDate>Fri, 20 Feb 2004 15:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Überlagerung der Main on Fri, 20 Feb 2004 16:25:07 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Was Du versuchst,ist ein Windows und ein Konsolenprogramm zu paaren.<br />
Ich nehme jetzt einfach mal an, das es ein Konsolenprogramm werden soll ??</p>
<p>Auch wenn das hier eigentlich ein MFC Forum ist, probier doch mal folgendes,<br />
umgewandelt für Konsolen-Programm</p>
<p>#include&lt;iostream&gt;<br />
#include&lt;fstream&gt;<br />
#include&lt;string&gt;</p>
<p>using namespace std;</p>
<p>void main(int argc, char* argv[])<br />
{<br />
// TODO: Place code here.<br />
cout&lt;&lt;&quot;Geben Sie einen Dateinamen (ohne Leerzeichen!) ein:\n&quot;;<br />
string strFileName;<br />
cin &gt;&gt; strFileName;</p>
<p>ifstream file;</p>
<p>file.open(strFileName.c_str());<br />
if(file.is_open())<br />
{<br />
while(!file.eof())<br />
{<br />
string strLine;<br />
getline(file,strLine);<br />
cout &lt;&lt; strLine &lt;&lt; endl;<br />
}<br />
}<br />
else<br />
{<br />
cout &lt;&lt; &quot;Die Datei kann nicht geöffnet werden.\n&quot;;<br />
}</p>
<p>}</p>
<p>Gruß, J.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/464202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/464202</guid><dc:creator><![CDATA[J^o^e]]></dc:creator><pubDate>Fri, 20 Feb 2004 16:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to Überlagerung der Main on Fri, 20 Feb 2004 16:34:49 GMT]]></title><description><![CDATA[<p>hi<br />
hattest recht<br />
danke für den tip</p>
]]></description><link>https://www.c-plusplus.net/forum/post/464205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/464205</guid><dc:creator><![CDATA[Buddy]]></dc:creator><pubDate>Fri, 20 Feb 2004 16:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to Überlagerung der Main on Fri, 20 Feb 2004 16:38:55 GMT]]></title><description><![CDATA[<p>No Problem Senor <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/464206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/464206</guid><dc:creator><![CDATA[J^o^e]]></dc:creator><pubDate>Fri, 20 Feb 2004 16:38:55 GMT</pubDate></item></channel></rss>