<?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[Visual Studio .NET MFC Dialogbasierend]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Es ist mein erster Beitrag. Hoffentlich nicht der letzte <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Also, ich bin ein Anfänger. Ich habe ein neues MFC Projekt dialogbasierend erstellt. Auf dem Dialog habe ich eine Simple Edit Box platziert. Nun will ich da einen Text ausgeben, z.B. &quot;Hello World!&quot;.</p>
<p>So, ich bin hingegangen und eine Control Variable &quot;Message Control&quot; und eine Value Variable &quot;Message&quot; erstellt. Dann in der Init-Funktion folgenden Code geschrieben:</p>
<pre><code>// TODO: Add extra initialization here
	char *str = &quot;Hallo!&quot;;
	Message = str;
	MessageControl.UpdateData(TRUE);
</code></pre>
<p>Aber irgendwie klappt die ausgabe nicht. Ich habe es auch zuerst direkt probiert:</p>
<pre><code>// TODO: Add extra initialization here
	Message = &quot;Hallo!&quot;;
	MessageControl.UpdateData(TRUE);
</code></pre>
<p>Aber keine Ausgabe. Warum??? Was mache ich da falsch?</p>
<p>Vielen Dank, labviewer</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163194/visual-studio-net-mfc-dialogbasierend</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 07:16:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163194.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Oct 2006 20:20:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:20:06 GMT]]></title><description><![CDATA[<p>Hallo Leute!</p>
<p>Es ist mein erster Beitrag. Hoffentlich nicht der letzte <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Also, ich bin ein Anfänger. Ich habe ein neues MFC Projekt dialogbasierend erstellt. Auf dem Dialog habe ich eine Simple Edit Box platziert. Nun will ich da einen Text ausgeben, z.B. &quot;Hello World!&quot;.</p>
<p>So, ich bin hingegangen und eine Control Variable &quot;Message Control&quot; und eine Value Variable &quot;Message&quot; erstellt. Dann in der Init-Funktion folgenden Code geschrieben:</p>
<pre><code>// TODO: Add extra initialization here
	char *str = &quot;Hallo!&quot;;
	Message = str;
	MessageControl.UpdateData(TRUE);
</code></pre>
<p>Aber irgendwie klappt die ausgabe nicht. Ich habe es auch zuerst direkt probiert:</p>
<pre><code>// TODO: Add extra initialization here
	Message = &quot;Hallo!&quot;;
	MessageControl.UpdateData(TRUE);
</code></pre>
<p>Aber keine Ausgabe. Warum??? Was mache ich da falsch?</p>
<p>Vielen Dank, labviewer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162205</guid><dc:creator><![CDATA[labviewer]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:20:06 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:32:32 GMT]]></title><description><![CDATA[<p>Du hast eine &quot;Control-Variable&quot; <strong>und</strong> eine &quot;String-Variable&quot; erstellt!?<br />
Das macht man normalerweise nicht... sondern entweder oder...</p>
<p>Wenn Du eine &quot;Control-Variable&quot; hast, dann verwende:</p>
<pre><code class="language-cpp">ctrlVar.SetWindowText(_T(&quot;Hello world&quot;));
</code></pre>
<p>Und bei &quot;String-Variable&quot;:</p>
<pre><code class="language-cpp">stringVar = _T(&quot;Hello World&quot;);
UpdateData(FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1162214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162214</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:38:29 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Wenn Du eine &quot;Control-Variable&quot; hast, dann verwende:</p>
<pre><code class="language-cpp">ctrlVar.SetWindowText(_T(&quot;Hello world&quot;));
</code></pre>
</blockquote>
<p>das klappt jedenfalls immer...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162217</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:40:43 GMT]]></title><description><![CDATA[<p>Vielen Dank. Funktioniert. Nur noch eine Frage:</p>
<p>Warum UpdateData(FALSE); ??? Ich habe gedacht nach dem zuweisen muss der Control einmal updatet werden.</p>
<p>Und woher weiß das Programm was er updaten soll? UpdateData ist irgendwie allgemein für alles und ich wollte nur die Daten in dem Control updaten.</p>
<p>Sorry für so blöde Anfängerfragen, aber errinnert euch wie ihr wart <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162220</guid><dc:creator><![CDATA[labviewer]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:40:43 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:48:11 GMT]]></title><description><![CDATA[<p>labviewer schrieb:</p>
<blockquote>
<p>Warum UpdateData(FALSE); ??? Ich habe gedacht nach dem zuweisen muss der Control einmal updatet werden.</p>
</blockquote>
<p>Ja, eben drum...<br />
FALSE =&gt; Variable zum Control<br />
TRUE =&gt; Control in die Variable<br />
<a href="http://msdn2.microsoft.com/t9fb9hww" rel="nofollow">http://msdn2.microsoft.com/t9fb9hww</a></p>
<p>labviewer schrieb:</p>
<blockquote>
<p>Und woher weiß das Programm was er updaten soll? UpdateData ist irgendwie allgemein für alles und ich wollte nur die Daten in dem Control updaten.</p>
</blockquote>
<p>Es wird <strong>alles</strong> Upgedated, was eine &quot;Value-Variable&quot; hat... (aus diesem Grund mag ich das &quot;UpdateData&quot; nicht so besonders; für spezielfälle macht es aber sinn).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162224</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:48:11 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 20:58:02 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>FALSE =&gt; Variable zum Control<br />
TRUE =&gt; Control in die Variable<br />
<a href="http://msdn2.microsoft.com/t9fb9hww" rel="nofollow">http://msdn2.microsoft.com/t9fb9hww</a></p>
</blockquote>
<p>das ist z.b. ein grund, warum ich das selten verwendet hab'. und wenn dann nur mit #defines wie:</p>
<pre><code>#define UPDATE_CONTROLS  FALSE
#define UPDATE_VARIABLES TRUE
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162230</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Thu, 26 Oct 2006 20:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Thu, 26 Oct 2006 22:49:58 GMT]]></title><description><![CDATA[<p>Danke für euere Antworten.</p>
<p>Wenn wir schon beim Thema sind. Kann man das Front Panel automatisch aktualisieren lassen, oder muss ich einen Thread dafür machen in dem UpdateData(FALSE); steht?</p>
<p>Gruss</p>
<p>Übrigens ich komme aus G-Welt. Also grafische Programmierung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162262</guid><dc:creator><![CDATA[labviewer]]></dc:creator><pubDate>Thu, 26 Oct 2006 22:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Fri, 27 Oct 2006 05:45:12 GMT]]></title><description><![CDATA[<p>labviewer schrieb:</p>
<blockquote>
<p>Wenn wir schon beim Thema sind. Kann man das Front Panel automatisch aktualisieren lassen, oder muss ich einen Thread dafür machen in dem UpdateData(FALSE); steht?</p>
</blockquote>
<p>Ein Thread!???? Das ist hoffentlich nicht Dein Ernst. Aus einem anderen Thread darf man nicht auf UI-Elemente eines anderen Threads zugreifen!<br />
Wenn Du was aktualisieren willst, dann muss dies ja einen Grund haben. Wenn der Grund nicht in einem direkten Methodenaufruf liegt, dann musst Du dem Dialog eine Message schicken (WM_APP+x).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162297</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 27 Oct 2006 05:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio .NET MFC Dialogbasierend on Fri, 27 Oct 2006 08:35:34 GMT]]></title><description><![CDATA[<p>Der Grund ist ja da. Ich will immer die aktuellen Daten im Fenster haben. Das mit dem Thread ist wahrscheinlich übertrieben, aber eine Funktion die mir nach jeder Zuweisung Variable-&gt;Control das Fenster automatisch updatet wäre wahrscheinlich passend. Oder wie macht ihr das normalerweise.<br />
In Labview muss man nicht extra dagen, so jetzt musst du das Fenster aktualisieren, damit ich die aktuellen Daten angezeigt bekomme. Labview macht es irgendwie automatisch.</p>
<p>Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162397</guid><dc:creator><![CDATA[labviewer]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:35:34 GMT</pubDate></item></channel></rss>