<?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[Programm läuft nicht mehr]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe ein Programm mit VC++ 6.0 geschrieben und jetzt Visual <a href="http://C++.NET" rel="nofollow">C++.NET</a> als neue Plattform bekommen (die Standard-Version). Aber egal welches Programm ich bisher versucht habe mit .NET zu kompilieren, es klappt net.<br />
Warum???<br />
Gibt es irgendwelche Einstellungen, die man zusätzlich noch durchführen muß??</p>
<p>Hier ein Beispiel.</p>
<p>Beim Kompilieren sagt er alles verlief erfolgreich, öffnet aber nicht die .exe<br />
Wechsel ich in den Debug-Ordner und starte die erstellte .exe bekomme ich folgende Fehlermeldung</p>
<p>Unbehandelte Ausnahme bei 0x7c239d5a (mfc71d.dll) in Hauptprog Empfangsstation.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000020.</p>
<p>Wenn ich auf Debug gehe bleibt er hier stehen.</p>
<pre><code class="language-cpp">BOOL CWnd::SetWindowPos(const CWnd* pWndInsertAfter, int x, int y, int cx,
	int cy, UINT nFlags)
{
	ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL)); //hier bleibt er stehen, aber keine Ahnung warum.

	if (m_pCtrlSite == NULL)
		return ::SetWindowPos(m_hWnd, pWndInsertAfter-&gt;GetSafeHwnd(),
			x, y, cx, cy, nFlags);
	else
		return m_pCtrlSite-&gt;SetWindowPos(pWndInsertAfter, x, y, cx, cy, nFlags);
}
</code></pre>
<p>Die winocc.cpp wird aber doch automatisch erstellt bzw. in das Projekt geladen.<br />
Ich habe da zumindest nichts dran verändert.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/66138/programm-läuft-nicht-mehr</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 20:25:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/66138.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Feb 2004 14:07:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm läuft nicht mehr on Wed, 25 Feb 2004 14:27:47 GMT]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe ein Programm mit VC++ 6.0 geschrieben und jetzt Visual <a href="http://C++.NET" rel="nofollow">C++.NET</a> als neue Plattform bekommen (die Standard-Version). Aber egal welches Programm ich bisher versucht habe mit .NET zu kompilieren, es klappt net.<br />
Warum???<br />
Gibt es irgendwelche Einstellungen, die man zusätzlich noch durchführen muß??</p>
<p>Hier ein Beispiel.</p>
<p>Beim Kompilieren sagt er alles verlief erfolgreich, öffnet aber nicht die .exe<br />
Wechsel ich in den Debug-Ordner und starte die erstellte .exe bekomme ich folgende Fehlermeldung</p>
<p>Unbehandelte Ausnahme bei 0x7c239d5a (mfc71d.dll) in Hauptprog Empfangsstation.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000020.</p>
<p>Wenn ich auf Debug gehe bleibt er hier stehen.</p>
<pre><code class="language-cpp">BOOL CWnd::SetWindowPos(const CWnd* pWndInsertAfter, int x, int y, int cx,
	int cy, UINT nFlags)
{
	ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL)); //hier bleibt er stehen, aber keine Ahnung warum.

	if (m_pCtrlSite == NULL)
		return ::SetWindowPos(m_hWnd, pWndInsertAfter-&gt;GetSafeHwnd(),
			x, y, cx, cy, nFlags);
	else
		return m_pCtrlSite-&gt;SetWindowPos(pWndInsertAfter, x, y, cx, cy, nFlags);
}
</code></pre>
<p>Die winocc.cpp wird aber doch automatisch erstellt bzw. in das Projekt geladen.<br />
Ich habe da zumindest nichts dran verändert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467568</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 25 Feb 2004 14:27:47 GMT</pubDate></item><item><title><![CDATA[Reply to Programm läuft nicht mehr on Wed, 25 Feb 2004 20:50:03 GMT]]></title><description><![CDATA[<p>wenn er an der zeile stehen bleibt heist das m_hWnd ist kein Window-Handle oder m_pCtrlSite gleich NULL. Wär jetzt interessant zu wissen was genau den ASSERT erzeugt <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/467925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467925</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 25 Feb 2004 20:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Programm läuft nicht mehr on Thu, 26 Feb 2004 10:02:47 GMT]]></title><description><![CDATA[<p>Beim Debuggen habe ich festgestellt, das die Werte in SetWindowPos aus der<br />
OnInitDialog() gesetzt werden.</p>
<pre><code class="language-cpp">pMedia-&gt;SetWindowPos(NULL, 0, 0 , 320, 240, SWP_NOOWNERZORDER | SWP_NOZORDER);
</code></pre>
<p>hier setzte ich die Position und Größe eines Mediaplayers. In 6.0 klappte das auch reibungslos. Wieso ist das unter .net falsch bzw. was ist daran falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/468186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/468186</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Thu, 26 Feb 2004 10:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to Programm läuft nicht mehr on Fri, 27 Feb 2004 13:42:32 GMT]]></title><description><![CDATA[<p>Hat sich erledigt.</p>
<p>.NET ist ziemlich anfällig.<br />
Beispiel:<br />
Pointer auf Mediaplayer = falsch</p>
<pre><code class="language-cpp">pMedia-&gt;SetWindowPos(NULL, 0, 0 , 320, 240, SWP_NOOWNERZORDER | SWP_NOZORDER);
</code></pre>
<p>Membervariable auf Mediaplayer = richtig</p>
<pre><code class="language-cpp">m_cMediaPlayer.SetWindowPos(NULL, 0, 0 , 320, 240, SWP_NOOWNERZORDER | SWP_NOZORDER);
</code></pre>
<p>GetDlgItem wird gar nicht mehr akzeptiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/468905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/468905</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Fri, 27 Feb 2004 13:42:32 GMT</pubDate></item></channel></rss>