[GD-Windows] RE: [GD-General] [GD General] Windows in .NET :(
Brought to you by:
vexxed72
From: Brian S. <bs...@mi...> - 2002-09-06 17:50:34
|
(cc'ing the Windows list and removing the general list) You haven't specified a WNDPROC for your window class. That might be one lame reason. =20 In any event, it's a pretty safe bet that oodles of apps calling RegisterClass were compiled through VS.NET before it shipped. You should probably have another look at your code. Try building a DX sample app, and compare their setup code against yours. --brian > -----Original Message----- > From: Joe Collins [mailto:jo...@mu...]=20 > Sent: Friday, September 06, 2002 10:51 AM > To: gam...@li... > Subject: [GD-General] [GD General] Windows in .NET :( >=20 >=20 > Hi all, >=20 > I just stupidly upgraded to Visual C++ .NET from VC6. And so=20 > of course=20 > my windows code doesn't > work with it for some lame reason. >=20 > This code worked > PIXELFORMATDESCRIPTOR pfd; > WNDCLASS wc; > // register window class > wc.style =3D CS_OWNDC; > wc.cbClsExtra =3D 0; > wc.cbWndExtra =3D 0; > wc.hInstance =3D ctx->HInst; > wc.hbrBackground =3D (HBRUSH)GetStockObject( BLACK_BRUSH ); > wc.lpszMenuName =3D NULL; > wc.lpszClassName =3D ctx->AppName; > DWORD so; > if (!RegisterClass( &wc )) > so =3D GetLastError(); >=20 > and now I get an error 87 - bad parameter >=20 > Anyone "upgrade" and have similar problems? >=20 > On a side note, I have previously tried to get the mousewheel=20 > working in=20 > my code. But > I get a compile error when I try to use WM_MOUSEWHEEL - undefined >=20 > There seems to be some magic defines you need to set to get this to=20 > compile... Something to do with > #define _WIN32_WINNT 0x0400 > #define _WIN32_WINDOWS 0x500 >=20 > but it doesn't seem to work for me. Perhaps there is more=20 > magic in the=20 > ordering or something. >=20 > Anyway, any help would be sweet. >=20 > Thanks, >=20 > -Joe >=20 >=20 >=20 >=20 > ------------------------------------------------------- > 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=3Dsourceforge1&refcode1=3Dvs3390 > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D557 >=20 |