<?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[Create Directory]]></title><description><![CDATA[<p>Hi,</p>
<p>ich will ein Directory erstellen, aber es hat immer eine Fehlermeldung:<br />
&quot; Debug Assertion Failed &quot;.<br />
Wenn ich debugge funktioniert es, ansonst kommt der Fehler.<br />
Könnt ihr mir bitte helfen, hier ist der Programmcode:</p>
<pre><code class="language-cpp">BOOL CEingabedialog::OnInitDialog() 
{
	CDialog::OnInitDialog();

	//Abfrage des Projektnamen
	CFileDialog projektname(FALSE, NULL, NULL, NULL, NULL);
	projektname.m_ofn.lpstrInitialDir = _pgmptr;
	projektname.m_ofn.lpstrTitle = &quot;Projektnamen eingeben&quot;;
	projektname.DoModal();

	//Pfad des Projektnamens ermitteln + Abspeichern in m_projektname
	m_projektname = projektname.GetPathName();

	//Verzeichnis erstellen mit dem Namen von m_projektnamen
	CreateDirectory(m_projektname, NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/176232/create-directory</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 15:00:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176232.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Mar 2007 11:03:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create Directory on Mon, 19 Mar 2007 11:03:47 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich will ein Directory erstellen, aber es hat immer eine Fehlermeldung:<br />
&quot; Debug Assertion Failed &quot;.<br />
Wenn ich debugge funktioniert es, ansonst kommt der Fehler.<br />
Könnt ihr mir bitte helfen, hier ist der Programmcode:</p>
<pre><code class="language-cpp">BOOL CEingabedialog::OnInitDialog() 
{
	CDialog::OnInitDialog();

	//Abfrage des Projektnamen
	CFileDialog projektname(FALSE, NULL, NULL, NULL, NULL);
	projektname.m_ofn.lpstrInitialDir = _pgmptr;
	projektname.m_ofn.lpstrTitle = &quot;Projektnamen eingeben&quot;;
	projektname.DoModal();

	//Pfad des Projektnamens ermitteln + Abspeichern in m_projektname
	m_projektname = projektname.GetPathName();

	//Verzeichnis erstellen mit dem Namen von m_projektnamen
	CreateDirectory(m_projektname, NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1248277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248277</guid><dc:creator><![CDATA[FrankbrauchtHilfe]]></dc:creator><pubDate>Mon, 19 Mar 2007 11:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Create Directory on Mon, 19 Mar 2007 14:39:00 GMT]]></title><description><![CDATA[<p>Au weia.....</p>
<p>1. macht man sowas nicht in OnInitDialog()<br />
2. missachtest Du den Rückgabewert von DoModal()</p>
<p>Du hast doch sicher auch einen &quot;Open Project&quot; Button in Deinem Dialog, oder?<br />
Wenn nein, was passiert denn, wenn im CFileDialog auf &quot;Abbrechen&quot; gedrückt wird?<br />
Wenn ja, dann bau in Dein OnInitDialog() am Schluss doch sowas wie</p>
<pre><code>PostMessage(WM_COMMAND, IDC_BUTTON_OPEN_PROJECT);
</code></pre>
<p>ein, dann wird automatisch die Buttonbehandlungsroutine aufgerufen, sobald OnitIntdialog() und was sonst noch so in der Messagequeue steht, abgearbeitet ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248450</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Mon, 19 Mar 2007 14:39:00 GMT</pubDate></item></channel></rss>