Re: [GD-General] [GD General] Windows in .NET :(
Brought to you by:
vexxed72
From: Mickael P. <gd...@dr...> - 2002-09-06 20:33:32
|
Looks like you're going to have some uninitialized variables in the WNDCLASS (btw there is a WNDCLASSEX) ----- Original Message ----- From: "Joe Collins" <jo...@mu...> To: <gam...@li...> Sent: Friday, September 06, 2002 7:51 PM Subject: [GD-General] [GD General] Windows in .NET :( > Hi all, > > I just stupidly upgraded to Visual C++ .NET from VC6. And so of course > my windows code doesn't > work with it for some lame reason. > > This code worked > PIXELFORMATDESCRIPTOR pfd; > WNDCLASS wc; > // register window class > wc.style = CS_OWNDC; > wc.cbClsExtra = 0; > wc.cbWndExtra = 0; > wc.hInstance = ctx->HInst; > wc.hbrBackground = (HBRUSH)GetStockObject( BLACK_BRUSH ); > wc.lpszMenuName = NULL; > wc.lpszClassName = ctx->AppName; > DWORD so; > if (!RegisterClass( &wc )) > so = GetLastError(); > > and now I get an error 87 - bad parameter > > Anyone "upgrade" and have similar problems? > > On a side note, I have previously tried to get the mousewheel working in > my code. But > I get a compile error when I try to use WM_MOUSEWHEEL - undefined > > There seems to be some magic defines you need to set to get this to > compile... Something to do with > #define _WIN32_WINNT 0x0400 > #define _WIN32_WINDOWS 0x500 > > but it doesn't seem to work for me. Perhaps there is more magic in the > ordering or something. > > Anyway, any help would be sweet. > > Thanks, > > -Joe > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > |