From: Yang F. <mis...@gm...> - 2004-09-06 01:43:10
|
Have you declared the variable wc? On Sun, 05 Sep 2004 17:13:14 -0700, SourceForge.net <no...@so...> wrote: >=20 > Read and respond to this message at: > https://sourceforge.net/forum/message.php?msg_id=3D2745117 > By: ivanrolim >=20 > I=B4m a Win32 programming beginner, and even knowing a lot of C++ I=B4m g= etting > some troubles. When I compile a program like this >=20 > #include <windows.h> > #include <string.h> >=20 > LRESULT CALLBACK MainWndProc (HWND hwnd, UINT nMsg, WPARAM wParam, LPARAM > lParam) > { > wc.lpszMenuName =3D MAKEINTRESOURCE(IDR_MENU); >=20 > static HWND hwndButton =3D 0; > static int cx, cy; >=20 > HDC hdc; > PAINTSTRUCT ps; > RECT rc; >=20 > switch (nMsg) > { > case WM_CREATE: > .......... >=20 > The Error appears like this: >=20 > --TenthChessRAW.cpp: In function `LRESULT MainWndProc(HWND__*, unsigned i= nt, > unsigned int, long int)': >=20 > --TenthChessRAW.cpp:12: error: `wc' undeclared (first use this function) >=20 > .............. > Am I doing something wrong? Also some functions, like GetDC, RecoverDC a= nd > such doesn=B4t work well with MIngW, so I cannot grab some IDS to work on= :( >=20 > Thank you! :) >=20 > ______________________________________________________________________ > You are receiving this email because you elected to monitor this forum. > To stop monitoring this forum, login to SourceForge.net and visit: > https://sourceforge.net/forum/unmonitor.php?forum_id=3D286641 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > _______________________________________________ > MinGW-users mailing list > Min...@li... >=20 > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |