<?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[Exception in AFX_MODULE_STATE]]></title><description><![CDATA[<p>Hallo Leute ich kann nicht mehr.</p>
<p>Ich versuche Euch mal mein Problem zu schildern. Ich hoffe ich kann es klar ausdrücken.</p>
<p>Ich habe einen Frame mit einer Toolbar, TreeView usw.(sind als MDI eingebunden).<br />
In diesem Frame erzeuge ich auch ein Dokument:</p>
<pre><code class="language-cpp">CDocument * pDoc = (CDocument*)g_pNewDocTemplate-&gt;CreateNewDocument();
</code></pre>
<p>Das funktioniert auch super.</p>
<p>Jetzt habe ich mir überlegt, dass ganze in einem ActiveX darzustellen. Dazu erzeuge ich den Frame als Child im ActiveX.</p>
<p>Das geht manchmal gut aber oft auch nicht. Beim erzeugen des Dokuments<br />
bleibt der Debugger in folgender Funktion stehen oder das ist der letzt punkt:</p>
<pre><code class="language-cpp">AFX_MODULE_STATE* AFXAPI AfxGetStaticModuleState()
{
	AFX_MODULE_STATE* pModuleState = &amp;afxModuleState;
	return pModuleState;
}
</code></pre>
<p>Leider geschieht dieses völlig asynchron. Mal geht es mal nicht.</p>
<p>Ich weiss leider nicht meht weiter. Probiere schon seit fast einer Woche dieses Problem zu lösen.</p>
<p>Wäre nett wenn Ihr mir helfen könntet.</p>
<p>PS:<br />
Mein Debugger zeigt folgende Aufrufliste:</p>
<pre><code>[b]
 	user32.dll!77d3ce1d() 	
 	user32.dll!77d3a853() 	
 	user32.dll!77d39f4b() 	
 	mfc42.dll!73d40e5c() 	
 	mfc42.dll!73d31902() 	
 	mfc42.dll!73d3df91() 	
 	mfc42.dll!73d42cb9() 	
 	mfc42.dll!73d3206f() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
&gt;	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x014009a4, unsigned int nMsg=5, unsigned int wParam=2, long lParam=0)  Zeile 57 + 0x15	C++
 	user32.dll!77d18654() 	
 	user32.dll!77d18723() 	
 	user32.dll!77d1bd1f() 	
 	mfc42.dll!73d31ef7() 	
 	user32.dll!77d39f2d() 	
 	user32.dll!77d39f4b() 	
 	mfc42.dll!73d40e5c() 	
 	mfc42.dll!73d31d01() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
 	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x014009a4, unsigned int nMsg=71, unsigned int wParam=0, long lParam=54262344)  Zeile 57 + 0x15	C++
 	user32.dll!77d18654() 	
 	user32.dll!77d18723() 	
 	user32.dll!77d18765() 	
 	user32.dll!77d19153() 	
 	user32.dll!77d1bc37() 	
 	user32.dll!77d19196() 	
 	ntdll.dll!77f65da3() 	
 	user32.dll!77d1bb8c() 	
 	mfc42.dll!73d35bc4() 	
 	mfc42.dll!73d9bc1c() 	
 	mfc42.dll!73d42a6f() 	
 	mfc42.dll!73d3beda() 	
[/b]
 	FrameTool.dll!CMainWindow::CreateEditorWindow()  Zeile 458 + 0x19	C++
 	FrameTool.dll!CMainWindow::CreateEditWindow(unsigned int wPara=0, long lParam=0)  Zeile 174	C++
 	mfc42.dll!73d31ed5() 	
 	user32.dll!77d1a541() 	
 	comctl32.dll!7732d232() 	
 	user32.dll!77d1a541() 	
 	comctl32.dll!7732076d() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
 	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x00300a52, unsigned int nMsg=1130, unsigned int wParam=0, long lParam=0)  Zeile 57 + 0x15	C++
</code></pre>
<p>Wenn es klappt wird der fettgedruckte teil nicht ausgeführt.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147286/exception-in-afx_module_state</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 18:36:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147286.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 May 2006 15:58:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exception in AFX_MODULE_STATE on Mon, 15 May 2006 16:21:34 GMT]]></title><description><![CDATA[<p>Hallo Leute ich kann nicht mehr.</p>
<p>Ich versuche Euch mal mein Problem zu schildern. Ich hoffe ich kann es klar ausdrücken.</p>
<p>Ich habe einen Frame mit einer Toolbar, TreeView usw.(sind als MDI eingebunden).<br />
In diesem Frame erzeuge ich auch ein Dokument:</p>
<pre><code class="language-cpp">CDocument * pDoc = (CDocument*)g_pNewDocTemplate-&gt;CreateNewDocument();
</code></pre>
<p>Das funktioniert auch super.</p>
<p>Jetzt habe ich mir überlegt, dass ganze in einem ActiveX darzustellen. Dazu erzeuge ich den Frame als Child im ActiveX.</p>
<p>Das geht manchmal gut aber oft auch nicht. Beim erzeugen des Dokuments<br />
bleibt der Debugger in folgender Funktion stehen oder das ist der letzt punkt:</p>
<pre><code class="language-cpp">AFX_MODULE_STATE* AFXAPI AfxGetStaticModuleState()
{
	AFX_MODULE_STATE* pModuleState = &amp;afxModuleState;
	return pModuleState;
}
</code></pre>
<p>Leider geschieht dieses völlig asynchron. Mal geht es mal nicht.</p>
<p>Ich weiss leider nicht meht weiter. Probiere schon seit fast einer Woche dieses Problem zu lösen.</p>
<p>Wäre nett wenn Ihr mir helfen könntet.</p>
<p>PS:<br />
Mein Debugger zeigt folgende Aufrufliste:</p>
<pre><code>[b]
 	user32.dll!77d3ce1d() 	
 	user32.dll!77d3a853() 	
 	user32.dll!77d39f4b() 	
 	mfc42.dll!73d40e5c() 	
 	mfc42.dll!73d31902() 	
 	mfc42.dll!73d3df91() 	
 	mfc42.dll!73d42cb9() 	
 	mfc42.dll!73d3206f() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
&gt;	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x014009a4, unsigned int nMsg=5, unsigned int wParam=2, long lParam=0)  Zeile 57 + 0x15	C++
 	user32.dll!77d18654() 	
 	user32.dll!77d18723() 	
 	user32.dll!77d1bd1f() 	
 	mfc42.dll!73d31ef7() 	
 	user32.dll!77d39f2d() 	
 	user32.dll!77d39f4b() 	
 	mfc42.dll!73d40e5c() 	
 	mfc42.dll!73d31d01() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
 	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x014009a4, unsigned int nMsg=71, unsigned int wParam=0, long lParam=54262344)  Zeile 57 + 0x15	C++
 	user32.dll!77d18654() 	
 	user32.dll!77d18723() 	
 	user32.dll!77d18765() 	
 	user32.dll!77d19153() 	
 	user32.dll!77d1bc37() 	
 	user32.dll!77d19196() 	
 	ntdll.dll!77f65da3() 	
 	user32.dll!77d1bb8c() 	
 	mfc42.dll!73d35bc4() 	
 	mfc42.dll!73d9bc1c() 	
 	mfc42.dll!73d42a6f() 	
 	mfc42.dll!73d3beda() 	
[/b]
 	FrameTool.dll!CMainWindow::CreateEditorWindow()  Zeile 458 + 0x19	C++
 	FrameTool.dll!CMainWindow::CreateEditWindow(unsigned int wPara=0, long lParam=0)  Zeile 174	C++
 	mfc42.dll!73d31ed5() 	
 	user32.dll!77d1a541() 	
 	comctl32.dll!7732d232() 	
 	user32.dll!77d1a541() 	
 	comctl32.dll!7732076d() 	
 	mfc42.dll!73d31cea() 	
 	mfc42.dll!73d31c73() 	
 	mfc42.dll!73d31018() 	
 	mfc42.dll!73d31bfb() 	
 	FrameTool.dll!AfxWndProcDllStatic(HWND__ * hWnd=0x00300a52, unsigned int nMsg=1130, unsigned int wParam=0, long lParam=0)  Zeile 57 + 0x15	C++
</code></pre>
<p>Wenn es klappt wird der fettgedruckte teil nicht ausgeführt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058296</guid><dc:creator><![CDATA[souso20]]></dc:creator><pubDate>Mon, 15 May 2006 16:21:34 GMT</pubDate></item></channel></rss>