<?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[doppelt start unterdrücken]]></title><description><![CDATA[<p>Will nicht das man mein Programm doppelt öffnen kann. Hab in der Microsoft Knowledge was gefunden.<br />
(<a href="http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/SUPPORT/KB/ARTICLES/Q141/7/52.asp&amp;NoWebContent=1" rel="nofollow">http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/SUPPORT/KB/ARTICLES/Q141/7/52.asp&amp;NoWebContent=1</a>)</p>
<p>Aber irgenwie Funktioniert das nicht.</p>
<p>Ich finde gleich nach der Regestrierung die Klasse nicht mehr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Mein Code:</p>
<pre><code class="language-cpp">BOOL		bClassRegistered = false;
	WNDCLASS	wndcls;
	memset(&amp;wndcls, 0, sizeof(WNDCLASS));   // start with NULL
	// defaults
	wndcls.style			= CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
	wndcls.lpfnWndProc		= ::DefWindowProc;
	wndcls.hInstance		= AfxGetInstanceHandle();
	wndcls.hIcon			= LoadIcon(IDI_ICONTRAY); // or load a different
	// icon
	wndcls.hCursor			= LoadCursor( IDC_ARROW );
	wndcls.hbrBackground	= (HBRUSH) (COLOR_WINDOW + 1);
	wndcls.lpszMenuName		= NULL;
	wndcls.lpszClassName	= AfxGetAppName();

	bClassRegistered		= AfxRegisterClass(&amp;wndcls);

	if(bClassRegistered)
		ASSERT(CWnd::FindWindow(AfxGetAppName(),NULL) != NULL); // ist immer NULL
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/53492/doppelt-start-unterdrücken</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 08:35:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/53492.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Oct 2003 15:29:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to doppelt start unterdrücken on Wed, 29 Oct 2003 15:29:28 GMT]]></title><description><![CDATA[<p>Will nicht das man mein Programm doppelt öffnen kann. Hab in der Microsoft Knowledge was gefunden.<br />
(<a href="http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/SUPPORT/KB/ARTICLES/Q141/7/52.asp&amp;NoWebContent=1" rel="nofollow">http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/SUPPORT/KB/ARTICLES/Q141/7/52.asp&amp;NoWebContent=1</a>)</p>
<p>Aber irgenwie Funktioniert das nicht.</p>
<p>Ich finde gleich nach der Regestrierung die Klasse nicht mehr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Mein Code:</p>
<pre><code class="language-cpp">BOOL		bClassRegistered = false;
	WNDCLASS	wndcls;
	memset(&amp;wndcls, 0, sizeof(WNDCLASS));   // start with NULL
	// defaults
	wndcls.style			= CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
	wndcls.lpfnWndProc		= ::DefWindowProc;
	wndcls.hInstance		= AfxGetInstanceHandle();
	wndcls.hIcon			= LoadIcon(IDI_ICONTRAY); // or load a different
	// icon
	wndcls.hCursor			= LoadCursor( IDC_ARROW );
	wndcls.hbrBackground	= (HBRUSH) (COLOR_WINDOW + 1);
	wndcls.lpszMenuName		= NULL;
	wndcls.lpszClassName	= AfxGetAppName();

	bClassRegistered		= AfxRegisterClass(&amp;wndcls);

	if(bClassRegistered)
		ASSERT(CWnd::FindWindow(AfxGetAppName(),NULL) != NULL); // ist immer NULL
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/382041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/382041</guid><dc:creator><![CDATA[Lallaly]]></dc:creator><pubDate>Wed, 29 Oct 2003 15:29:28 GMT</pubDate></item><item><title><![CDATA[Reply to doppelt start unterdrücken on Wed, 29 Oct 2003 16:10:00 GMT]]></title><description><![CDATA[<p>Such mal im Forum. Das kommt öfter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/382064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/382064</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Wed, 29 Oct 2003 16:10:00 GMT</pubDate></item></channel></rss>