<?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[Assertion Failed]]></title><description><![CDATA[<p>void CNewProfile::OnExecuteFile()<br />
{</p>
<p>CFileDialog m_GetFileExecute(TRUE);<br />
if(m_GetFileExecute.DoModal()==IDOK)<br />
{<br />
CString FileExecuteName=m_GetFileExecute.GetFileName();<br />
CString FileExecutePath=m_GetFileExecute.GetFolderPath();<br />
m_FileExecute=FileExecutePath+FileExecuteName;<br />
UpdateData(FALSE);<br />
}<br />
}</p>
<p>dadurch entsthet &quot;Assertion Failed&quot;:</p>
<p>CString CFileDialog::GetFolderPath() const<br />
{<br />
----&gt; ASSERT(::IsWindow(m_hWnd));<br />
ASSERT(m_ofn.Flags &amp; OFN_EXPLORER);</p>
<p>CString strResult;<br />
if (GetParent()-&gt;SendMessage(CDM_GETFOLDERPATH, (WPARAM)MAX_PATH, (LPARAM)strResult.GetBuffer(MAX_PATH)) &lt; 0)<br />
strResult.Empty();<br />
else<br />
strResult.ReleaseBuffer();<br />
return strResult;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80516/assertion-failed</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 01:17:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80516.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Jul 2004 00:13:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Assertion Failed on Thu, 22 Jul 2004 00:31:00 GMT]]></title><description><![CDATA[<p>void CNewProfile::OnExecuteFile()<br />
{</p>
<p>CFileDialog m_GetFileExecute(TRUE);<br />
if(m_GetFileExecute.DoModal()==IDOK)<br />
{<br />
CString FileExecuteName=m_GetFileExecute.GetFileName();<br />
CString FileExecutePath=m_GetFileExecute.GetFolderPath();<br />
m_FileExecute=FileExecutePath+FileExecuteName;<br />
UpdateData(FALSE);<br />
}<br />
}</p>
<p>dadurch entsthet &quot;Assertion Failed&quot;:</p>
<p>CString CFileDialog::GetFolderPath() const<br />
{<br />
----&gt; ASSERT(::IsWindow(m_hWnd));<br />
ASSERT(m_ofn.Flags &amp; OFN_EXPLORER);</p>
<p>CString strResult;<br />
if (GetParent()-&gt;SendMessage(CDM_GETFOLDERPATH, (WPARAM)MAX_PATH, (LPARAM)strResult.GetBuffer(MAX_PATH)) &lt; 0)<br />
strResult.Empty();<br />
else<br />
strResult.ReleaseBuffer();<br />
return strResult;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565557</guid><dc:creator><![CDATA[the_duke]]></dc:creator><pubDate>Thu, 22 Jul 2004 00:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Assertion Failed on Thu, 22 Jul 2004 04:42:45 GMT]]></title><description><![CDATA[<p>GetFolderPath gibt den <em>gerade im Dialog ausgewählten</em> Pfad zurück. Dein Dialog ist (nachdem DoModal zurückkehrt) bereits beendet, also gibt es auch keinen ausgewählten Pfad. Obendrein würde auch die nächste Assertion fehlschlagen, denn dein Dialog hat nicht den Style OFN_EXPLORER.</p>
<p>Wenn du einfach nur hinterher den Pfad der ausgewählten Datei haben willst, dann ist GetFolderPath die falsche Funktion. Nimm GetPathName, dann brauchst du auch nichts mehr zusammen zu setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565567</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 22 Jul 2004 04:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to Assertion Failed on Thu, 22 Jul 2004 10:27:03 GMT]]></title><description><![CDATA[<p>ich häng meine Frage einfach mal hier dran:<br />
wie erhalte ich eine Liste der in einem Ordner befindlichen Datein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565819</guid><dc:creator><![CDATA[thenoob]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to Assertion Failed on Thu, 22 Jul 2004 11:36:30 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>solche Standard-Fragen stehen doch in den FAQ (also zunächst einfach dort einmal nachsehen, sind immerhin schon 5 Seiten):</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39130" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39130</a></p>
<p>eine gute Seite ist auch hier, z.B. für das aktuelle Problem:</p>
<p><a href="http://www.mpdvc.de/html.htm#Q12" rel="nofollow">http://www.mpdvc.de/html.htm#Q12</a></p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565939</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Thu, 22 Jul 2004 11:36:30 GMT</pubDate></item></channel></rss>