<?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[Problem it char variable]]></title><description><![CDATA[<p>hi, ich hab ein problem mit meiner winapi anwendung. und zwar bekomme ich beim kompilieren diesen fehler:</p>
<pre><code>[C++ Fehler] Main.cpp(7): E2277 L-Wert erwartet
</code></pre>
<p>ich verwende den Borland Turbo C++</p>
<p>hier ist der programm header</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#define IDR_XPSTYLE 1

#define ID_MENU 501

#define IDM_NEWVOK 200
#define IDM_OPENVOK 201
#define IDM_PRACTICEVOK 202
#define IDM_EXIT 203

#define IDM_HELP 204
#define IDM_ABOUT 205
#define IDM_SAVEVOK 206

class App         //Programm Klasse
{
public:
    App();       //Konstruktor
    ~App();      //Destruktor

    LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);   //Window Procedure
    char szClassName[15];                                           //Klassenname
    int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR);  // Main Funktionfunction

    int Vokabeldatei_erstellen();                                   //Funktion zum erstellen einer Vokabeldatei
    int Vokabeldatei_erweitern();                                   //Funktion zum erweitern einer Vokabeldatei
    int Vokabeln_abfragen();                                        //Funktion zum abfragen von Vokabeln aus einer Vokabeldatei

    char szUeberschrift1[];                                         //Überschrift für das eingabefeld für die englischen Vokabeln
    char szUeberschrift2[];                                         //Überschrift für das Eingabefeld für die deutschen Vokabeln
    char szUeberschrift3[];                                         //Überschrift für das Eingabefeld zur ausgabe des Inhalts der Vokabeldatei
    char szUeberschrift4[];                                         //Überschrift für das Eingabefeld zur ausgabe der bereits abgefragten Vokabeln
    char szUeberschrift5[];                                         //Überschrift für das Eingabefeld zur eingabe des Dateinamens

private:
    HWND hWnd; // Window Handle
    MSG message; //Messages
    WNDCLASSEX wc; //Window class
    HMENU menu;    // Menu Handle

    static HWND hEdit1;   //Editfeld für die ausgabe der Vokabeldatei bzw. der bereits abgefragten Vokabeln
    static HWND hEdit2;   //Editfeld zur eingabe der Englischen Vokabel
    static HWND hEdit3;   //Editfeld zur eingabe der deutschen Vokabel
    static HWND hEdit4;   //editfeld zur Eingabe des Dateinamens
    static HWND hButton1; //Button zum eintragen der Vokabel in die vokabeldatei
    static HWND hButton2; //Button zum speichern der Vokabeldatei
    static HBRUSH hBrush; //Brush für den schrifthintergrund
    static RECT rect;     //Fenstergröße
    bool optionen[10]; //0 = Vokabeln abfragen? 1 = speichern?, 2, 3, 4, 5, 6, 7, 8, 9, 10 = unbelegt

};
</code></pre>
<p>Und hier die main.cpp</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#include&quot;Main.h&quot;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

App::App()   //Konstruktorfunktion
{
     szClassName = &quot;Vokabeltrainer&quot;; //fehler bezieht sich hier drauf
}

App::~App()  //Destruktorfunktion
{
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow)
{
    return 0;
}
</code></pre>
<p>ich hoffe, ihr könnt mir helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194858/problem-it-char-variable</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 00:59:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194858.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 15:17:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem it char variable on Thu, 11 Oct 2007 15:18:34 GMT]]></title><description><![CDATA[<p>hi, ich hab ein problem mit meiner winapi anwendung. und zwar bekomme ich beim kompilieren diesen fehler:</p>
<pre><code>[C++ Fehler] Main.cpp(7): E2277 L-Wert erwartet
</code></pre>
<p>ich verwende den Borland Turbo C++</p>
<p>hier ist der programm header</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#define IDR_XPSTYLE 1

#define ID_MENU 501

#define IDM_NEWVOK 200
#define IDM_OPENVOK 201
#define IDM_PRACTICEVOK 202
#define IDM_EXIT 203

#define IDM_HELP 204
#define IDM_ABOUT 205
#define IDM_SAVEVOK 206

class App         //Programm Klasse
{
public:
    App();       //Konstruktor
    ~App();      //Destruktor

    LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);   //Window Procedure
    char szClassName[15];                                           //Klassenname
    int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR);  // Main Funktionfunction

    int Vokabeldatei_erstellen();                                   //Funktion zum erstellen einer Vokabeldatei
    int Vokabeldatei_erweitern();                                   //Funktion zum erweitern einer Vokabeldatei
    int Vokabeln_abfragen();                                        //Funktion zum abfragen von Vokabeln aus einer Vokabeldatei

    char szUeberschrift1[];                                         //Überschrift für das eingabefeld für die englischen Vokabeln
    char szUeberschrift2[];                                         //Überschrift für das Eingabefeld für die deutschen Vokabeln
    char szUeberschrift3[];                                         //Überschrift für das Eingabefeld zur ausgabe des Inhalts der Vokabeldatei
    char szUeberschrift4[];                                         //Überschrift für das Eingabefeld zur ausgabe der bereits abgefragten Vokabeln
    char szUeberschrift5[];                                         //Überschrift für das Eingabefeld zur eingabe des Dateinamens

private:
    HWND hWnd; // Window Handle
    MSG message; //Messages
    WNDCLASSEX wc; //Window class
    HMENU menu;    // Menu Handle

    static HWND hEdit1;   //Editfeld für die ausgabe der Vokabeldatei bzw. der bereits abgefragten Vokabeln
    static HWND hEdit2;   //Editfeld zur eingabe der Englischen Vokabel
    static HWND hEdit3;   //Editfeld zur eingabe der deutschen Vokabel
    static HWND hEdit4;   //editfeld zur Eingabe des Dateinamens
    static HWND hButton1; //Button zum eintragen der Vokabel in die vokabeldatei
    static HWND hButton2; //Button zum speichern der Vokabeldatei
    static HBRUSH hBrush; //Brush für den schrifthintergrund
    static RECT rect;     //Fenstergröße
    bool optionen[10]; //0 = Vokabeln abfragen? 1 = speichern?, 2, 3, 4, 5, 6, 7, 8, 9, 10 = unbelegt

};
</code></pre>
<p>Und hier die main.cpp</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#include&quot;Main.h&quot;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

App::App()   //Konstruktorfunktion
{
     szClassName = &quot;Vokabeltrainer&quot;; //fehler bezieht sich hier drauf
}

App::~App()  //Destruktorfunktion
{
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow)
{
    return 0;
}
</code></pre>
<p>ich hoffe, ihr könnt mir helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382956</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Thu, 11 Oct 2007 15:23:10 GMT]]></title><description><![CDATA[<p>strcpy(szClassName, &quot;Vokabeltrainer&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382963</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:23:10 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Thu, 11 Oct 2007 15:28:16 GMT]]></title><description><![CDATA[<p>thx, aber wofür das strcpy?</p>
<p>dit: ok, funzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382967</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Thu, 11 Oct 2007 15:28:39 GMT]]></title><description><![CDATA[<p>Die Funktion strcpy() kopiert die Zeichenkette, auf die der Zeiger src zeigt, inklusive des Endzeichens '\0' an die Stelle, auf die der Zeiger dst zeigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382968</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:28:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Thu, 11 Oct 2007 15:30:44 GMT]]></title><description><![CDATA[<p>Danke für die erklärung. Wieder etwas schaluer.^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382970</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Sun, 14 Oct 2007 08:40:37 GMT]]></title><description><![CDATA[<p>allerdings hab ich jetzt zwei neue probs:<br />
1. Ich muss mehreren chars einen string zuweisen und wenn ich das mit stdcpy mache haben alle chars den string, den ich der letzten zugewiesen habe...<br />
2. wenn ich mein programm starte passiert nix.... obwohl ein fenster angezeigt werden müsste. hier sind mal alle dateien des projekts:</p>
<p>1.main.h</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#define IDR_XPSTYLE 1

#define ID_MENU 501

#define IDM_NEWVOK 200
#define IDM_OPENVOK 201
#define IDM_PRACTICEVOK 202
#define IDM_EXIT 203

#define IDM_HELP 204
#define IDM_ABOUT 205
#define IDM_SAVEVOK 206

class App         //Programm Klasse 
{
public:
	App();       //Konstruktor
	~App();      //Destruktor

	char szClassName[];                                           //Klassenname

	int Vokabeldatei_erstellen();                                   //Funktion zum erstellen einer Vokabeldatei
	int Vokabeldatei_erweitern();                                   //Funktion zum erweitern einer Vokabeldatei
	int Vokabeln_abfragen();                                        //Funktion zum abfragen von Vokabeln aus einer Vokabeldatei

	char szUeberschrift1[];                                         //Überschrift für das eingabefeld für die englischen Vokabeln
	char szUeberschrift2[];                                         //Überschrift für das Eingabefeld für die deutschen Vokabeln
	char szUeberschrift3[];                                         //Überschrift für das Eingabefeld zur ausgabe des Inhalts der Vokabeldatei
	char szUeberschrift4[];                                         //Überschrift für das Eingabefeld zur ausgabe der bereits abgefragten Vokabeln
	char szUeberschrift5[];                                         //Überschrift für das Eingabefeld zur eingabe des Dateinamens

private:

};
</code></pre>
<p>main.cpp</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

#include&quot;Main.h&quot;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

App::App()   //Konstruktorfunktion
{
	 strcpy(szClassName, &quot;Vokabeltrainer&quot;);
	 strcpy(szUeberschrift1, &quot;Englische Vokabel: &quot;);   //überschrift für die englischen Vokabeln
	 strcpy(szUeberschrift2, &quot;Deutsche Vokabel: &quot;);    //überschrift für die deutschen Vokabeln
	 strcpy(szUeberschrift3, &quot;Inhalt der Vokabeldatei: &quot;); //überschrift für den Inhalt der Vokabeldatei
	 strcpy(szUeberschrift4, &quot;Berreits abgefragte Vokabeln: &quot;); //überschrift für die berreits abgefragten Vokabeln
	 strcpy(szUeberschrift5, &quot;Dateiname: &quot;);   //überschrift für den dateinamen
}

App::~App()  //Destruktorfunktion
{
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow)
{
 	HWND hWnd; // Window Handle
	MSG message; //Messages
	WNDCLASSEX wc; //Window class
	HMENU menu;    // Menu Handle
	App Program;

	wc.hInstance = hInstance;
	wc.lpszClassName = Program.szClassName;
	wc.lpfnWndProc = WndProc;
	wc.style = CS_HREDRAW | CS_VREDRAW;
	wc.cbSize = sizeof(WNDCLASSEX);
	wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
	wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
	wc.hCursor = LoadCursor(NULL, IDC_ARROW);
	wc.lpszMenuName = NULL;
	wc.cbClsExtra = 0;
	wc.cbWndExtra = 0;
	wc.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

	if(!RegisterClassEx(&amp;wc))
	{
	   return 0;
	}

	hWnd = CreateWindowEx(
		   WS_EX_CLIENTEDGE,
		   Program.szClassName,
		   &quot;Vokabeltrainer&quot;,
		   WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX,
		   CW_USEDEFAULT,
		   CW_USEDEFAULT,
		   600,
		   400,
		   NULL,
		   NULL,
		   hInstance,
		   NULL);

	ShowWindow(hWnd, iCmdShow);

	menu = LoadMenu(hInstance, MAKEINTRESOURCE(ID_MENU));
	SetMenu(hWnd, menu);

	while (GetMessage (&amp;message, NULL, 0, 0))
	{
		TranslateMessage(&amp;message);
		DispatchMessage(&amp;message);
	}

	return message.wParam;
}

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{

	//static HWND hEdit1;   //Editfeld für die ausgabe der Vokabeldatei bzw. der bereits abgefragten Vokabeln
	//static HWND hEdit2;   //Editfeld zur eingabe der Englischen Vokabel
	//static HWND hEdit3;   //Editfeld zur eingabe der deutschen Vokabel
	//static HWND hEdit4;   //editfeld zur Eingabe des Dateinamens
	//static HWND hButton1; //Button zum eintragen der Vokabel in die vokabeldatei
	//static HWND hButton2; //Button zum speichern der Vokabeldatei
	//static HBRUSH hBrush; //Brush für den schrifthintergrund
	//static RECT rect;     //Fenstergröße
	//bool optionen[10]; //0 = Vokabeln abfragen? 1 = speichern?, 2, 3, 4, 5, 6, 7, 8, 9, 10 = unbelegt

	switch (message) {
	   /*case WM_CREATE:
	   {
				hButton1 = CreateWindow( &quot;button&quot;,
                                                 &quot;Eintragen&quot;,
                                                 WS_CHILD | WS_VISIBLE,
                                                 0, 0, 0, 0,
												 hWnd,
                                                 NULL,
                                                 ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                                 NULL);
				MoveWindow(hButton1, 70, 150, 160, 22, TRUE);

				break;
       }*/
	   case WM_DESTROY:
	   {
		   /*if (hBrush) {
			   DeleteObject(hBrush);
		   }*/
		   PostQuitMessage (0);
		   break;
       }

	}

	return DefWindowProc(hWnd, message, wParam, lParam);
}
</code></pre>
<p>Rsrc.rc</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;Main.h&quot;

501 MENU
BEGIN
   POPUP &quot;&amp;Aufgaben&quot;
   BEGIN
   MENUITEM &quot;&amp;Neue Vokabeldatei anlegen&quot;, IDM_NEWVOK
   MENUITEM &quot;&amp;Vokabeldatei bearbeiten&quot;, IDM_OPENVOK
   MENUITEM &quot;&amp;Vokabeldatei speichern&quot;, IDM_SAVEVOK
   MENUITEM SEPARATOR
   MENUITEM &quot;&amp;Vokabeln abfragen&quot;, IDM_PRACTICEVOK
   MENUITEM SEPARATOR
   MENUITEM &quot;&amp;Programm beenden&quot;, IDM_EXIT
   END

   POPUP &quot;&amp;Hilfe&quot;
   BEGIN
   MENUITEM &quot;&amp;Hilfe&quot;, IDM_HELP
   MENUITEM &quot;&amp;Über das Programm&quot;, IDM_ABOUT
   END
END

IDR_XPSTYLE  24 DISCARDABLE &quot;style.bin&quot;
</code></pre>
<p>style.bin</p>
<pre><code class="language-cpp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;assembly
   xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;
   manifestVersion=&quot;1.0&quot;&gt;
 &lt;assemblyIdentity
    processorArchitecture=&quot;x86&quot;
    version=&quot;5.1.0.0&quot;
    type=&quot;win32&quot;
    name=&quot;AUTORNAME&quot;/&gt;
 &lt;description&gt;PROGRAMMNAME&lt;/description&gt;
 &lt;dependency&gt;
  &lt;dependentAssembly&gt;
    &lt;assemblyIdentity
         type=&quot;win32&quot;
         name=&quot;Microsoft.Windows.Common-Controls&quot;
         version=&quot;6.0.0.0&quot;
         publicKeyToken=&quot;6595b64144ccf1df&quot;
         language=&quot;*&quot;
         processorArchitecture=&quot;x86&quot;/&gt;
  &lt;/dependentAssembly&gt;
 &lt;/dependency&gt;
&lt;/assembly&gt;
</code></pre>
<p>den tipp mit der style.bin zum verwenden es xpstyles hab ich hier i-wo gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384742</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Sun, 14 Oct 2007 08:40:37 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 11:16:04 GMT]]></title><description><![CDATA[<p>Bitte leute. ich muss das prob bis freitag gelöst ham.( ist für die schule)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385471</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Mon, 15 Oct 2007 11:16:04 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 12:00:10 GMT]]></title><description><![CDATA[<p>zu 1.) Ich würde mal speicher deinen char arrays zuweisen.<br />
zu 2.) Ich habe beim überfliegen nix gesehen aber du hast garkeine Fehlerbehandlung. Werte GetLastError aus und lass dir Fehler wenn du sie hast anzeigen.</p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385503</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 15 Oct 2007 12:00:10 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 12:10:29 GMT]]></title><description><![CDATA[<p>Möglichkeit 1: du verwendest tatsächlich char-Arrays - aber dann bitte mit Größenangabe (erstaunlich, daß diese &quot;char xyz[];&quot; durch den Compiler kommen) - und füllst diese mit strcpy() und Co. auf.</p>
<p>Möglichkeit 2: du ersetzt die char-Arrays durch &quot;echte&quot; Strings (std::string), dann kannst du sogar mit Zuweisungsoperatoren arbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385510</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 15 Oct 2007 12:10:29 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 13:09:28 GMT]]></title><description><![CDATA[<p>1. frage: kann man da wo szClassName hinkommt strings verwenden und kann man strings mit TextOut ausgeben?</p>
<p>geil, nachdem ich GetLastError eingefügt hab, funzts^^ aber dazu bleibt eine frage: wie soll ich den error code ausgeben einfach den return wert in ner variable speichern und ausgeben, oder wie?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385567</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Mon, 15 Oct 2007 13:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 13:04:56 GMT]]></title><description><![CDATA[<p>Nein, da braucht man (afaik) char-Zeiger. (wobei - an Stellen, wo der Wert nur lokal benötigt wird, z.B. für TextOut(), kannst du auch mit c_str() auf die Daten zugreifen)</p>
<p>Mein Vorschlag: Nimm die MFC, da ersparst du dir eine Menge Stress.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385572</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 15 Oct 2007 13:04:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Mon, 15 Oct 2007 15:46:05 GMT]]></title><description><![CDATA[<p>Ich könnte auch die VCL nehmen( verwende Borland) aber ich hab das GUI und auch ein paar andere sachen schon in einem anderen projekt fertig.</p>
<p>aja, wie kann ich den standart öffnen/speichern dialog aufrufen?</p>
<p>edit: äh, wieso ist s t a n d a r t zensiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385732</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385732</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Mon, 15 Oct 2007 15:46:05 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Tue, 16 Oct 2007 06:28:47 GMT]]></title><description><![CDATA[<p>weil es hinten mit d geschrieben wird und nicht mit t<br />
das ist die gezwungene rechtschreib-korrektur<br />
{[zum glueck nicht ausgereift, sonst wuerde man meine posts nicht mehr lesen koennen vor lauter * #gg}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386040</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Tue, 16 Oct 2007 06:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Tue, 16 Oct 2007 12:51:07 GMT]]></title><description><![CDATA[<p>ah thx. wusst ich garnicht... trotzdem bleibt meine frage:<br />
wie kann ich den Standard Öfnen/Speicherdialog einbinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386350</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Tue, 16 Oct 2007 12:51:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Tue, 16 Oct 2007 13:04:07 GMT]]></title><description><![CDATA[<p>Such nach GetOpenFileName und GetSaveFileName.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386377</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386377</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Tue, 16 Oct 2007 13:04:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Tue, 16 Oct 2007 15:47:16 GMT]]></title><description><![CDATA[<p>THX. ich such mal.( du minst doch in der msdn, oder?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386520</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Tue, 16 Oct 2007 15:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 12:29:54 GMT]]></title><description><![CDATA[<p>So, wieder ein prob( ich hasse es). jett werden die childs nicht angezeigt. wieder keinerleih fehler. hier ist mal nur die WndProc, weil sich nix von edm anderen verändert hat.</p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{

	static HWND hEdit1;   //Editfeld für die ausgabe der Vokabeldatei bzw. der bereits abgefragten Vokabeln
	static HWND hEdit2;   //Editfeld zur eingabe der Englischen Vokabel
	static HWND hEdit3;   //Editfeld zur eingabe der deutschen Vokabel
	//static HWND hEdit4;   //editfeld zur Eingabe des Dateinamens
	static HWND hButton1; //Button zum eintragen der Vokabel in die vokabeldatei
	//static HWND hButton2; //Button zum speichern der Vokabeldatei
	static HBRUSH hBrush; //Brush für den schrifthintergrund
	static RECT rect;     //Fenstergröße
    const char szUeberschrift1[] = &quot;Englische Vokabel:&quot;; // Überschrift für das eingabefelde der englischen vokabel
    const char szUeberschrift2[] = &quot;Deutsche Vokabel:&quot;; // Das selbe für die deutsche Vokabel
    const char szUeberschrift3[] = &quot;Inhalt der Vokabeldatei:&quot;; // jo, nomal für das dritte editfeld
    const char szUeberschrift4[] = &quot;Bereits abgefragte Vokabeln:&quot;; // &lt;-
	const char szUeberschrift5[] = &quot;Dateiname (ohne Endung):&quot;; //Überschrift des savewindows

	Program.optionen[1] = FALSE;
	Program.optionen[2] = FALSE;
	switch (message) {

	   case WM_SIZE:
            {
         rect.left    = 0;
         rect.top     = 0;
         rect.right   = LOWORD(lParam);
         rect.bottom  = HIWORD(lParam);
         return 0;
			 }
	   case WM_COMMAND:
	   {
		switch (LOWORD (lParam)) {
		   case IDM_NEWVOK:
		   case IDM_OPENVOK:
		   case IDM_SAVEVOK:
		   case IDM_PRACTICEVOK:
		   case IDM_HELP:
		   {
				 MessageBox(hWnd, (LPSTR) &quot;Funktion noch nicht eingebaut.&quot;, (LPSTR) Program.szClassName, MB_ICONINFORMATION | MB_OK);
				 return 0;
		   }
		   case IDM_ABOUT :
		   {
				 MessageBox(NULL, &quot;Vokabeltrainer  \n Copyright bei Martin 'Arathorns Sohn' Alsfasser \n Dark Grass Software&quot;, &quot;Über das Programm&quot;, MB_OK);
				 return 0;
		   }

		   case IDM_EXIT :
		   {
			   PostQuitMessage(0);
			   return 0;
           }
		  }
		  return 0;
		}
	   case WM_CREATE:
	   {
		   hBrush = CreateSolidBrush(RGB(255, 255, 255));

		   hEdit1 = CreateWindowEx(WS_EX_CLIENTEDGE,
								   &quot;edit&quot;,
								   NULL,
								   WS_CHILD | WS_VISIBLE | ES_READONLY | WS_VSCROLL | ES_AUTOVSCROLL | ES_MULTILINE,
								   0, 0, 0, 0,
								   hWnd,
								   NULL,
								   ((LPCREATESTRUCT) lParam) -&gt; hInstance,
								   NULL);
           MoveWindow(hEdit1, 310, 30, 270, 310, TRUE);

           hEdit2 = CreateWindowEx(WS_EX_CLIENTEDGE,
                                        &quot;edit&quot;,
                                        NULL,
                                        WS_CHILD | WS_VISIBLE,
                                        0, 0, 0, 0,
                                        hWnd,
                                        NULL,
                                        ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                        NULL);
		   MoveWindow(hEdit2, 40, 70, 230, 22, TRUE);

		   hEdit3 = CreateWindowEx(WS_EX_CLIENTEDGE,
                                        &quot;edit&quot;,
                                        NULL,
                                        WS_CHILD | WS_VISIBLE,
                                        0, 0, 0, 0,
                                        hWnd,
                                        NULL,
                                        ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                        NULL);
		   MoveWindow(hEdit3, 40, 120, 230, 22, TRUE);

		   hButton1 = CreateWindow( &quot;button&quot;,
									&quot;Eintragen&quot;,
									WS_CHILD | WS_VISIBLE,
									0, 0, 0, 0,
									hWnd,
									NULL,
									((LPCREATESTRUCT) lParam) -&gt; hInstance,
									NULL);
		   MoveWindow(hButton1, 70, 150, 160, 22, TRUE);

		   UpdateWindow(hWnd);
		   return 0;
       }
	   case WM_DESTROY:
	   {
		   if (hBrush) {
			   DeleteObject(hBrush);
		   }
		   PostQuitMessage (0);
		   break;
       }

	}

	return DefWindowProc(hWnd, message, wParam, lParam);
}
</code></pre>
<p>habs auch schon mit showWindow und allem probiert, wieder nix gebracht.</p>
<p>aja, wenn ich im menü auf die einträge klicke, wird die messageBox, die da erscheinen sollte nicht angezeigt....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387151</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 12:45:27 GMT]]></title><description><![CDATA[<blockquote>
<p>switch (LOWORD (<strong>w</strong>Param)) {</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1387166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387166</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:45:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 12:52:18 GMT]]></title><description><![CDATA[<p>thx dafür, aber anscheinend hat mein pc was dagegen neue fenster zu öffnen. ich hör zwar sounds, aber die messageboxen werden nicht geöffnet...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387173</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Wed, 17 Oct 2007 12:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 13:11:30 GMT]]></title><description><![CDATA[<p>Einmal aufgeräumt ... zwar nicht getestet, aber egal:P</p>
<pre><code class="language-cpp">#define IDC_EDIT_1 1001
#define IDC_EDIT_2 1002
#define IDC_EDIT_3 1003
#define IDC_BTN_INSERT 1004

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message) 
	{
		case WM_COMMAND:
		{
			switch (LOWORD(wParam)) 
			{
				case IDM_NEWVOK:
				case IDM_OPENVOK:
				case IDM_SAVEVOK:
				case IDM_PRACTICEVOK:
				case IDM_HELP:
				{
					MessageBox(hWnd, TEXT(&quot;Funktion noch nicht implementiert&quot;), Program.szClassName, MB_OK | MB_ICONWARNING);
				} break;
				case IDM_\1:
				{
					MessageBox(NULL, TEXT(&quot;Vokabeltrainer\nCopyright bei Martin 'Arathorns Sohn' Alsfasser\nDark Grass Software&quot;), TEXT(&quot;Über das Programm&quot;), MB_OK | MB_ICONINFORMATION);
				} break;
				case IDM_EXIT:
				{
					PostQuitMessage(0);
				} break;
			}
		} break;
		case WM_CREATE:
		{
			if (CreateWindowEx(	WS_EX_CLIENTEDGE, TEXT(&quot;edit&quot;), NULL, WS_CHILD | WS_VISIBLE | ES_READONLY | WS_VSCROLL | 
								ES_AUTOVSCROLL | ES_MULTILINE, 310, 30, 270, 310, hWnd, (HMENU)IDC_EDIT_1, ((LPCREATESTRUCT)lParam)-&gt;hInstance,
								NULL) == NULL ||
				CreateWindowEx(	WS_EX_CLIENTEDGE, TEXT(&quot;edit&quot;), NULL, WS_CHILD | WS_VISIBLE, 40, 70, 230, 22, hWnd, (HMENU)IDC_EDIT_2,
								((LPCREATESTRUCT)lParam)-&gt;hInstance, NULL) == NULL ||
				CreateWindowEx(	WS_EX_CLIENTEDGE, TEXT(&quot;edit&quot;), NULL, WS_CHILD | WS_VISIBLE, 40, 120, 230, 22, hWnd, (HMENU)IDC_EDIT_3,
								((LPCREATESTRUCT)lParam)-&gt;hInstance, NULL) == NULL ||
				CreateWindowEx(	0, TEXT(&quot;button&quot;), TEXT(&quot;Eintragen&quot;), WS_CHILD | WS_VISIBLE, 70, 150, 160, 22, hWnd, (HMENU)IDC_BTN_INSERT,
								((LPCREATESTRUCT)lParam)-&gt;hInstance, NULL) == NULL)
			{
				MessageBox(NULL, TEXT(&quot;Es ist ein Fehler beim erstellen des Fensters aufgetreten!&quot;), TEXT(&quot;Fehler&quot;), MB_OK | MB_ICONERROR);
				return -1;
			}
		} break;
		case WM_DESTROY:
		{
			PostQuitMessage(0);
		} break;
		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
	}
	return 0L;
}
</code></pre>
<p>... dann hast du die bescheuerten static's mal alle raus -.- Das Handle auf die Fenster bekommst du per GetDlgItem(hWnd, IDC_EDIT_1) bsw. bei hEdit1 ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387201</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 17 Oct 2007 13:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 13:45:30 GMT]]></title><description><![CDATA[<p>THX, aber was war an dem anderen Code so schlimm? Und wenn da was schlimm dran ist: warum lernt man nicht in tuts keinen schlechten code zu schreiben. was ich hier und auch woanders höre, haben viele tutorials ziemlich schlechten code...</p>
<p>thx, aber anscheinend gibts beim erstellen der fenster nen fehler. ich höre sofort nen sound, aber selbst das mainwindow öffnet sich nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387212</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Wed, 17 Oct 2007 13:45:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Wed, 17 Oct 2007 18:17:04 GMT]]></title><description><![CDATA[<p>Also wusste jetzt nicht ob du in C oder C++ schreibst ... deswegen mal bei C geblieben, da C++ dazu kompatibel ist.</p>
<p>Einmal waren bei dir statische Variablen drin ... nur notfalls nutzen!<br />
Dann hast du auf LPSTR gecastet. Warum? Ein TEXT(&quot;..&quot;) tut es auf jedenfall und du bekommst auch keine Probleme, wenn du auf UNICODE umsteigst.</p>
<p>Dann hast du da irgendwas bei WM_SIZE gemacht ... frag mich nicht was du damit bezwecken wolltest <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
<p>Dann hast du nochmal MoveWindow aufgerufen, anstelle die Werte direkt bei CreateWindow(Ex) anzugeben. Dann hast du nen haufen return 0 drin, die man sich durch nen default-value für die switch-case-Konstruktion sparen kann ...</p>
<p>usw. ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387383</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 17 Oct 2007 18:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to Problem it char variable on Thu, 18 Oct 2007 15:50:00 GMT]]></title><description><![CDATA[<p>ok, ich prog in C++^^ aber wie gesagt, es gibt das prob, dass jetzt garnix mehr angezeigt wird.</p>
<p>ps: das mit dem moveWindow hab ich aus nem tut, dass es so besser wäre</p>
<p>EDIT: och ne. hab grade gemerckt, dass es das prob nur gibt, wenn ich den xp style verwenden will( hab ich hier ausm forum die anleitung.) nja, wenn ich ihn weglasse funtz es zumindest. thx für die tips.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387843</guid><dc:creator><![CDATA[Arathorns Sohn]]></dc:creator><pubDate>Thu, 18 Oct 2007 15:50:00 GMT</pubDate></item></channel></rss>