<?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[Dialogfeldproblem]]></title><description><![CDATA[<p>Hi @ all!</p>
<p>Ich öffne über<br />
Create und ShowWindow 3 Dialogfeldfenstern nacheinander. Schließe sie aber nicht sonder will sie als Grafikkontrollfenster haben. Sobald ich nun auf das erste der 3 Fensterklicke bekomme ich einen Programmabsturz und Windows wirft mir ne Fehlermeldung raus. Da es aber kontrollfenster seien sollen muss ich nun mal alle 3 offen und auch zwischen ihnen herumspringen können. Wie kann ich das erreichen?</p>
<p>Hier noch die Fehlermeldung:</p>
<pre><code>Die Anweisung in &quot;0x00411fd1&quot; verweist auf Speicher in &quot;0x00153000&quot;. Der Vorgang &quot;read&quot; konnte nicht auf dem Speicher durchgeführt werden.
</code></pre>
<p>MfG<br />
Blind</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/54451/dialogfeldproblem</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 19:29:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/54451.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Nov 2003 12:57:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 12:57:10 GMT]]></title><description><![CDATA[<p>Hi @ all!</p>
<p>Ich öffne über<br />
Create und ShowWindow 3 Dialogfeldfenstern nacheinander. Schließe sie aber nicht sonder will sie als Grafikkontrollfenster haben. Sobald ich nun auf das erste der 3 Fensterklicke bekomme ich einen Programmabsturz und Windows wirft mir ne Fehlermeldung raus. Da es aber kontrollfenster seien sollen muss ich nun mal alle 3 offen und auch zwischen ihnen herumspringen können. Wie kann ich das erreichen?</p>
<p>Hier noch die Fehlermeldung:</p>
<pre><code>Die Anweisung in &quot;0x00411fd1&quot; verweist auf Speicher in &quot;0x00153000&quot;. Der Vorgang &quot;read&quot; konnte nicht auf dem Speicher durchgeführt werden.
</code></pre>
<p>MfG<br />
Blind</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388857</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 12:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:03:44 GMT]]></title><description><![CDATA[<p>Im Debugger starten und prüfen, wo der Fehler auftritt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388866</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:06:49 GMT]]></title><description><![CDATA[<p>Der Fehler tritt auf sobald das erste oder zweite Fenster angeklickt wird</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388869</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:07:47 GMT]]></title><description><![CDATA[<p>Im Debugger starten und prüfen, wo (nicht wann) der Fehler auftritt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388872</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:13:40 GMT]]></title><description><![CDATA[<p>Wie meinst du dass genau?</p>
<p>Der Debugger sagt bei mir</p>
<pre><code>Nicht abgefangene Ausnahme in Firststep.exe: 0xC0000005: Access Violation.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/388882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388882</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:13:40 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:19:43 GMT]]></title><description><![CDATA[<p>blind schrieb:</p>
<blockquote>
<p>Der Debugger sagt bei mir</p>
<pre><code>Nicht abgefangene Ausnahme in Firststep.exe: 0xC0000005: Access Violation.
</code></pre>
</blockquote>
<p>In der angezeigten MessageBox sollte dann &quot;Wiederholen&quot; oder &quot;Break&quot; oder sowas angezeigt werden. Da klickst du dann drauf...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388886</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:19:43 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:21:07 GMT]]></title><description><![CDATA[<pre><code>Nicht abgefangene Ausnahme in Firststep.exe: 0xC0000005: Access Violation.
</code></pre>
<p>unter der Messagebox habe ich nur die wahl OK zu drücken und dann erscheint eine Disassemblierung in Code fenster mit dem Pfeil der ber Folgenden Zeile stehend:</p>
<pre><code>00411FD1   mov         al,byte ptr [ecx+edx]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/388893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388893</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:25:58 GMT]]></title><description><![CDATA[<p>Wie sieht der Callstack aus? Das ist eines der Debugfenster.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388904</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:25:58 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:31:14 GMT]]></title><description><![CDATA[<p>Welches der Folgenden Debug Fenster ist er den?</p>
<p>Register<br />
Aufrufliste<br />
Überwachung<br />
Speicher<br />
Variablen<br />
Disemblierung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388914</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:32:18 GMT]]></title><description><![CDATA[<p>Aufrufliste</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388915</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:33:14 GMT]]></title><description><![CDATA[<p>Bitte sehr</p>
<pre><code>FIRSTSTEP! 00412481()
CWnd::OnWndMsg(unsigned int 15, unsigned int 0, long 0, long * 0x0012fcb8) line 1825
CWnd::WindowProc(unsigned int 15, unsigned int 0, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x012e60e8 {CWnd hWnd=0x00170602}, HWND__ * 0x00170602, unsigned int 15, unsigned int 0, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00170602, unsigned int 15, unsigned int 0, long 0) line 368
AfxWndProcBase(HWND__ * 0x00170602, unsigned int 15, unsigned int 0, long 0) line 220 + 21 bytes
USER32! 77e02ca8()
USER32! 77e04764()
USER32! 77e04720()
NTDLL! 778a15ef()
USER32! 77e0577d()
CWinThread::Run() line 487 + 11 bytes
CWinApp::Run() line 400
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00133227, int 1) line 49 + 11 bytes
FIRSTSTEP! 00413618()
FIRSTSTEP! 004134e3()
KERNEL32! 77e787f5()
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/388917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388917</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:33:14 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:40:41 GMT]]></title><description><![CDATA[<p>Doppelklickst du bitte mal auf die zweite Zeile von oben (CWnd::OnWndMsg) und zeigst ein wenig des Codeumfelds?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388924</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:46:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">.
.
.
	case AfxSig_lwl:
		lResult = (this-&gt;*mmf.pfn_lwl)(wParam, lParam);
		break;

	case AfxSig_lwwM:
		lResult = (this-&gt;*mmf.pfn_lwwM)((UINT)LOWORD(wParam),
			(UINT)HIWORD(wParam), (CMenu*)CMenu::FromHandle((HMENU)lParam));
		break;

	case AfxSig_vv:
		(this-&gt;*mmf.pfn_vv)();
		break;

	case AfxSig_vw: // AfxSig_vb, AfxSig_vh
		(this-&gt;*mmf.pfn_vw)(wParam);
		break;

	case AfxSig_vww:
		(this-&gt;*mmf.pfn_vww)((UINT)wParam, (UINT)lParam);
		break;

	case AfxSig_vvii:
		(this-&gt;*mmf.pfn_vvii)((short)LOWORD(lParam), (short)HIWORD(lParam));
		break;

	case AfxSig_vwww:
		(this-&gt;*mmf.pfn_vwww)(wParam, LOWORD(lParam), HIWORD(lParam));
		break;

	case AfxSig_vwii:
		(this-&gt;*mmf.pfn_vwii)(wParam, LOWORD(lParam), HIWORD(lParam));
		break;
.
.
.
</code></pre>
<p>er verweist mich dabei auf die WINCORE.CPP<br />
der genau stand ist das break nach dem dritten case</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388930</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Fri, 07 Nov 2003 13:56:31 GMT]]></title><description><![CDATA[<p>Hast du ein Hauptfenster, oder nur diese drei?</p>
<p>Falls du eines hast, wie sieht die MessageMap aus?</p>
<p>Falls nicht, wie sieht InitInstance aus?</p>
<p>Weist du m_pMainWnd irgendwo einen Wert zu?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/388936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/388936</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 07 Nov 2003 13:56:31 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 06:50:38 GMT]]></title><description><![CDATA[<p>Das Hauptfenster ist ein SDI-Projekt. DIe MessageMap habe ich leider nicht gefunden aber die InitInstancd sieht so aus:</p>
<pre><code class="language-cpp">// Standardinitialisierung
	// Wenn Sie diese Funktionen nicht nutzen und die Größe Ihrer fertigen 
	//  ausführbaren Datei reduzieren wollen, sollten Sie die nachfolgenden
	//  spezifischen Initialisierungsroutinen, die Sie nicht benötigen, entfernen.

	// Ändern des Registrierungsschlüssels, unter dem unsere Einstellungen gespeichert sind.
	// ZU ERLEDIGEN: Sie sollten dieser Zeichenfolge einen geeigneten Inhalt geben
	// wie z.B. den Namen Ihrer Firma oder Organisation.
	SetRegistryKey(_T(&quot;Local AppWizard-Generated Applications&quot;));

	LoadStdProfileSettings();  // Standard INI-Dateioptionen laden (einschließlich MRU)

	// Dokumentvorlagen der Anwendung registrieren. Dokumentvorlagen
	//  dienen als Verbindung zwischen Dokumenten, Rahmenfenstern und Ansichten.

	CSingleDocTemplate* pDocTemplate;
	pDocTemplate = new CSingleDocTemplate(
		IDR_MAINFRAME,
		RUNTIME_CLASS(CFirststepDoc),
		RUNTIME_CLASS(CMainFrame),       // Haupt-SDI-Rahmenfenster
		RUNTIME_CLASS(CFirststepView));
	AddDocTemplate(pDocTemplate);

	// Befehlszeile parsen, um zu prüfen auf Standard-Umgebungsbefehle DDE, Datei offen
	CCommandLineInfo cmdInfo;
	ParseCommandLine(cmdInfo);

	// Verteilung der in der Befehlszeile angegebenen Befehle
	if (!ProcessShellCommand(cmdInfo))
		return FALSE;

	// Das einzige Fenster ist initialisiert und kann jetzt angezeigt und aktualisiert werden.
	m_pMainWnd-&gt;ShowWindow(SW_SHOW);
	m_pMainWnd-&gt;UpdateWindow();
	if( ! DShowLib::InitLibrary( &quot;IS-2090097660&quot; ) )
	{
    return FALSE;
	}
	else
	{
		return TRUE;
	}
</code></pre>
<p>Über die Suchfunktion habe ich folgendes über m_pMainWnd gefunden:</p>
<pre><code>C:\tmp\Kopie von Kopie von Firststep 0.3\Firststep.cpp(82):	m_pMainWnd-&gt;ShowWindow(SW_SHOW);
C:\tmp\Kopie von Kopie von Firststep 0.3\Firststep.cpp(83):	m_pMainWnd-&gt;UpdateWindow();
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(393):	if (m_pMainWnd == NULL &amp;&amp; AfxOleGetUserCtrl())
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPCORE.CPP(396):		TRACE0(&quot;Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application.\n&quot;);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(28):	ASSERT(m_pMainWnd != NULL);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(29):	m_pMainWnd-&gt;SendMessage(WM_CLOSE);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(38):	ASSERT_VALID(m_pMainWnd);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(41):	m_pMainWnd-&gt;ShowWindow(SW_HIDE);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(42):	m_pMainWnd-&gt;ShowOwnedPopups(FALSE);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI.CPP(45):	m_pMainWnd-&gt;SetWindowPos(&amp;CWnd::wndBottom, 0, 0, 0, 0,
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI2.CPP(33):		if (m_pMainWnd == NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\APPUI2.CPP(53):		m_pMainWnd-&gt;SendMessage(WM_COMMAND, ID_FILE_PRINT_DIRECT);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DBCORE.CPP(750):			TRACE0(&quot;Error: No default window (AfxGetApp()-&gt;m_pMainWnd) for SQLDriverConnect.\n&quot;);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCMGR.CPP(689):		CWnd* pMainWnd = AfxGetApp()-&gt;m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCMGR.CPP(786):	AfxGetApp()-&gt;m_pMainWnd-&gt;SendMessage(WM_COMMAND, ID_FILE_PRINT_DIRECT);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCMGR.CPP(795):		AfxGetApp()-&gt;m_pMainWnd-&gt;PostMessage(WM_CLOSE);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCMGR.CPP(933):			if (pFrame != (pAppFrame = (CFrameWnd*)AfxGetApp()-&gt;m_pMainWnd))
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCSINGL.CPP(198):	if (bCreated &amp;&amp; pThread-&gt;m_pMainWnd == NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\DOCSINGL.CPP(201):		pThread-&gt;m_pMainWnd = pFrame;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLELOCK.CPP(38):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd != NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLELOCK.CPP(41):		if (pApp-&gt;m_pMainWnd-&gt;IsWindowEnabled())
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLELOCK.CPP(44):			pApp-&gt;m_pMainWnd-&gt;DestroyWindow();
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLELOCK.CPP(87):		(pApp == NULL || pApp-&gt;m_pMainWnd == NULL ||
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLELOCK.CPP(88):		!pApp-&gt;m_pMainWnd-&gt;IsWindowVisible()))
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLESVR1.CPP(782):		else if (pApp-&gt;m_pMainWnd != NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\OLESVR1.CPP(873):		CFrameWnd* pMainFrame = (CFrameWnd*)pApp-&gt;m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(75):			pThread-&gt;m_pMainWnd == NULL &amp;&amp; pApp-&gt;m_pMainWnd-&gt;GetSafeHwnd() != NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(78):			threadWnd.Attach(pApp-&gt;m_pMainWnd-&gt;m_hWnd);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(79):			pThread-&gt;m_pMainWnd = &amp;threadWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(342):	m_pMainWnd = NULL;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(548):		CWnd* pMainWnd = m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(761):				if ((m_pMainWnd != NULL) &amp;&amp; (IsEnterKey(lpMsg) || IsButtonUp(lpMsg)))
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(800):// Access to m_pMainWnd &amp; m_pActiveWnd
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(808):	if (m_pMainWnd != NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(809):		return m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\THRDCORE.CPP(876):		dc &lt;&lt; &quot;\nm_pMainWnd = &quot; &lt;&lt; m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\VIEWPREV.CPP(750):	CWnd* pMainWnd = AfxGetThread()-&gt;m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\VIEWPREV.CPP(892):	CFrameWnd* pParent = (CFrameWnd*)AfxGetThread()-&gt;m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(785):		if (pThread-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(793):			pThread-&gt;m_pMainWnd = NULL;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(2841):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(2850):		if (AfxGetThread() != NULL &amp;&amp; AfxGetThread()-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(2879):		if (AfxGetThread() != NULL &amp;&amp; AfxGetThread()-&gt;m_pMainWnd == this &amp;&amp;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(2905):		if (AfxGetThread() != NULL &amp;&amp; AfxGetThread()-&gt;m_pMainWnd == this &amp;&amp;
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(2919):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(760):		if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(792):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(817):		if (!afxContextIsDLL &amp;&amp; pApp-&gt;m_pMainWnd == NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(867):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(948):	if (AfxGetThread()-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(1072):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINFRM.CPP(1085):	if (pApp != NULL &amp;&amp; pApp-&gt;m_pMainWnd == this)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINMAIN.CPP(41):		if (pThread-&gt;m_pMainWnd != NULL)
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINMAIN.CPP(43):			TRACE0(&quot;Warning: Destroying non-NULL m_pMainWnd\n&quot;);
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINMAIN.CPP(44):			pThread-&gt;m_pMainWnd-&gt;DestroyWindow();
C:\Programme\Microsoft Visual Studio\VC98\MFC\SRC\WINMDI.CPP(508):		CWnd* pMainWnd = AfxGetThread()-&gt;m_pMainWnd;
C:\Programme\Microsoft Visual Studio\VC98\MFC\INCLUDE\AFXWIN.H(3802):	CWnd* m_pMainWnd;       // main window (usually same AfxGetApp()-&gt;m_pMainWnd)
C:\Programme\Microsoft Visual Studio\VC98\MFC\INCLUDE\AFXWIN.H(3803):	CWnd* m_pActiveWnd;     // active main window (may not be m_pMainWnd)
C:\Programme\Microsoft Visual Studio\VC98\MFC\INCLUDE\AFXWIN.H(3839):	// Advanced: virtual access to m_pMainWnd
Es wurde(n) 59 Übereinstimmung(en) gefunden.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/390509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390509</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Mon, 10 Nov 2003 06:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 07:22:56 GMT]]></title><description><![CDATA[<p>OK, an m_pMainWnd liegt es nicht. Aber irgendwas geht schief beim Aufruf der Behandlungsfunktion für WM_PAINT.</p>
<p>Wie erstellst du die Dialoge?</p>
<p>Hast du irgendwelche OnPaint-Methoden überschrieben?</p>
<p>Kannst du anhand des ersten Parameters von AfxCallWndProc erkennen, um welches der Fenster es sich handelt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390517</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 10 Nov 2003 07:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 07:30:38 GMT]]></title><description><![CDATA[<p>Die Dialogfeldfenster erstelle ich wiefolgt:</p>
<pre><code class="language-cpp">m_rotdlg.DestroyWindow();    // schutz vor doppelaufruf
	m_rotdlg.Create(IDD_rot);
	m_rotdlg.ShowWindow(SW_SHOW);
	m_rotdlg.OnPaint(Rot);
	m_blaudlg.DestroyWindow();    // schutz vor doppelaufruf
	m_blaudlg.Create(IDD_blau);
	m_blaudlg.ShowWindow(SW_SHOW);
	m_blaudlg.OnPaint(Blau);
	m_gruendlg.DestroyWindow();    // schutz vor doppelaufruf
	m_gruendlg.Create(IDD_gruen);
	m_gruendlg.ShowWindow(SW_SHOW);
	m_gruendlg.OnPaint(Gruen);
</code></pre>
<p>dann sieht die OnPaint anhand des Beispiels für rot so aus:</p>
<pre><code class="language-cpp">void rotdlg::OnPaint(unsigned char prot[PICX][PICY]) 
{
	int x=0,y=0;
	CPaintDC dc(this); // device context for painting
	HDC hdc=dc.GetSafeHdc();
	for(x=0;x&lt;640;x++)
	{
		for(y=0;y&lt;480;y++)
		{
			dc.SetPixel(x+10,y+10,RGB(prot[x][y],prot[x][y],prot[x][y]));
		}
	}

	// TODO: Code für die Behandlungsroutine für Nachrichten hier einfügen

	// Kein Aufruf von CDialog::OnPaint() für Zeichnungsnachrichten
}
</code></pre>
<p>und die OnMove so:</p>
<pre><code class="language-cpp">oid rotdlg::OnMove(void) 
{
	//CDialog::OnMove(x, y);
	AfxMessageBox(&quot;MOVE&quot;);
	int x=0,y=0;
	CPaintDC dc(this); // device context for painting
	HDC hdc=dc.GetSafeHdc();
	for(x=0;x&lt;640;x++)
	{
		for(y=0;y&lt;480;y++)
		{
			dc.SetPixel(x+10,y+10,RGB(Rot[x][y],Rot[x][y],Rot[x][y]));
		}
	}
}
</code></pre>
<p>und die OnSize:</p>
<pre><code class="language-cpp">void rotdlg::OnSize(UINT nType, int cx, int cy) 
{
	AfxMessageBox(&quot;SIZE&quot;);
	int x=0,y=0;
	CDialog::OnSize(nType, cx, cy);
	CPaintDC dc(this); // device context for painting
	HDC hdc=dc.GetSafeHdc();
	for(x=0;x&lt;640;x++)
	{
		for(y=0;y&lt;480;y++)
		{
			dc.SetPixel(x+10,y+10,RGB(Rot[x][y],Rot[x][y],Rot[x][y]));
		}
	}

	// TODO: Code für die Behandlungsroutine für Nachrichten hier einfügen

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/390520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390520</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Mon, 10 Nov 2003 07:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 07:35:44 GMT]]></title><description><![CDATA[<p>Mach den Parameter bei OnPaint weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390525</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 10 Nov 2003 07:35:44 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 07:47:53 GMT]]></title><description><![CDATA[<p>Das war der Fehler</p>
<p>Nur wie komme ich dann an die Bilddaten die in der Klasse View stehen und ich in den Klassen Rot,Gruen und Blau brauche? dann muss ich die mir erstmal mit extern übergeben lassen oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390532</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Mon, 10 Nov 2003 07:47:53 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 07:49:11 GMT]]></title><description><![CDATA[<p>blind schrieb:</p>
<blockquote>
<p>dann muss ich mir aber wie dekomme ich die Bilddaten dann in die Klass rot von der View klasse?</p>
</blockquote>
<p>Du rufst doch nicht etwa die OnPaint-Methoden der Dialoge aus der View-Klasse auf?</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Du könntest der View-Klasse eine Methode verpassen, die die Bilddaten liefert.<br />
Du könntest den Dialogklassen eine weitere Methode verpassen, mit der du die Bilddaten übergibst.<br />
etc...</p>
<p>Jedenfalls kannst du einer Nachrichtenbehandlungsfunktion nicht einfach weitere Parameter verpassen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390534</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 10 Nov 2003 07:49:11 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfeldproblem on Mon, 10 Nov 2003 08:15:24 GMT]]></title><description><![CDATA[<p>Danke erstmal für deine mühe!</p>
<p>Werde mir jetzt was anderes überlegen wie ich das mit den Bildarrays mache es müste doch auch gehen view.array[][] wenn ich view in der Rot klasse bekannt mache oder nicht?</p>
<p>MFK schrieb:</p>
<blockquote>
<p>Du rufst doch nicht etwa die OnPaint-Methoden der Dialoge aus der View-Klasse auf?</p>
</blockquote>
<p>Wer lesen kann ist klar im Vorteil. Im erten beitrag von mir auf dieser Seite in &quot;Die Dialogfeldfenster erstelle ich wiefolgt:&quot; steht drinne das ich die OnPaint in der View klasse aufrufe. aber das Funktioniert ja jetzt fehlerfrei und das werde ich wenn ich noch genug zeit am ende des Projektes habe ändern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390548</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Mon, 10 Nov 2003 08:15:24 GMT</pubDate></item></channel></rss>