<?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[Probleme mit DoModal()]]></title><description><![CDATA[<p>Hi !</p>
<p>Ich hab ein Programm das auf das Active Directory Service zugreift. Weiters hab ich einen Button der einen Dialog aufruft in dem man Benutzername, Passwort und die Domäne einstellen kann.</p>
<p>LDAPSearchDlg.h:</p>
<pre><code class="language-cpp">public:
    CUserPwDlg dlgUserPw;
</code></pre>
<p>LDAPSearchDlg.cpp:</p>
<pre><code class="language-cpp">void CLDAPSearchDlg::OnBnClickedOptions()
{

	dlgUserPw.DoModal();
}
</code></pre>
<p>Und wenn ich jetzt debugge und den Button &quot;Options&quot; anklicke bekomm ich folgende Fehler:</p>
<blockquote>
<p>c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2146: syntax error : missing ';' before identifier 'dlgUserPw'<br />
c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2501: 'CLDAPSearchDlg::CUserPwDlg' : missing storage-class or type specifiers<br />
c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2501: 'CLDAPSearchDlg::dlgUserPw' : missing storage-class or type specifiers</p>
</blockquote>
<p>Was mach ich falsch?<br />
Bin um jedes bisschen Hilfe dankbar !</p>
<p>lg</p>
<p>PS: Natürlich hab ich auch die header Datei &quot;UserPwDlg.h&quot; in &quot;LDAPSearchDlg.cpp&quot; eingebunden !<br />
Hab VC.NET2003</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80421/probleme-mit-domodal</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 00:54:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80421.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jul 2004 06:09:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit DoModal() on Wed, 21 Jul 2004 06:09:33 GMT]]></title><description><![CDATA[<p>Hi !</p>
<p>Ich hab ein Programm das auf das Active Directory Service zugreift. Weiters hab ich einen Button der einen Dialog aufruft in dem man Benutzername, Passwort und die Domäne einstellen kann.</p>
<p>LDAPSearchDlg.h:</p>
<pre><code class="language-cpp">public:
    CUserPwDlg dlgUserPw;
</code></pre>
<p>LDAPSearchDlg.cpp:</p>
<pre><code class="language-cpp">void CLDAPSearchDlg::OnBnClickedOptions()
{

	dlgUserPw.DoModal();
}
</code></pre>
<p>Und wenn ich jetzt debugge und den Button &quot;Options&quot; anklicke bekomm ich folgende Fehler:</p>
<blockquote>
<p>c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2146: syntax error : missing ';' before identifier 'dlgUserPw'<br />
c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2501: 'CLDAPSearchDlg::CUserPwDlg' : missing storage-class or type specifiers<br />
c:\Dokumente und Einstellungen\pm\Eigene Dateien\Visual Studio Projects\LDAPSearch\LDAPSearch\LDAPSearchDlg.h(41) : error C2501: 'CLDAPSearchDlg::dlgUserPw' : missing storage-class or type specifiers</p>
</blockquote>
<p>Was mach ich falsch?<br />
Bin um jedes bisschen Hilfe dankbar !</p>
<p>lg</p>
<p>PS: Natürlich hab ich auch die header Datei &quot;UserPwDlg.h&quot; in &quot;LDAPSearchDlg.cpp&quot; eingebunden !<br />
Hab VC.NET2003</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564869</guid><dc:creator><![CDATA[Test-User]]></dc:creator><pubDate>Wed, 21 Jul 2004 06:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit DoModal() on Wed, 21 Jul 2004 06:26:39 GMT]]></title><description><![CDATA[<p>fehlt vielleicht ein</p>
<pre><code class="language-cpp">#include &quot;CUserPwDlg.h&quot;
</code></pre>
<p>im &quot;CLDAPSearchDlg.h&quot; - File ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564877</guid><dc:creator><![CDATA[fdefd]]></dc:creator><pubDate>Wed, 21 Jul 2004 06:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit DoModal() on Wed, 21 Jul 2004 06:52:27 GMT]]></title><description><![CDATA[<p>Hi !</p>
<p>Erstmal danke für die Hilfe. Aber das File hab wurde automatisch includiert, das heißt, daran lag´s wohl auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /> !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564900</guid><dc:creator><![CDATA[Test-User]]></dc:creator><pubDate>Wed, 21 Jul 2004 06:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit DoModal() on Thu, 22 Jul 2004 15:54:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>trotzdem sieht es nach einem Problem der #include(-Reihenfolge) aus, &quot;CUserPwDlg.h&quot; muß vor &quot;LDAPSearchDlg.h&quot; in der .cpp-Datei includiert worden sein, damit CUserPwDlg als Typ erkannt wird.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566223</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Thu, 22 Jul 2004 15:54:28 GMT</pubDate></item></channel></rss>