Re: [GD-Windows] Windows in .NET :(
Brought to you by:
vexxed72
From: Ben C. <be...@gu...> - 2002-09-06 18:33:52
|
On Friday, September 6, 2002, 6:50:24 PM, someone wrote: [snip] >> 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 I'm working from memory here, but don't you have to set the size parameter of the WNDCLASS structure, and zero out all the unused members? -- Ben Carter - Neko Technologies - be...@gu... http://www.neko-tech.com/ - http://www.absoluteterror.com/ ---------------------------------PGP Key available on request--- "Broken mirror, a million shades of light, the old echo fades away. But just you and I can find the answer, and then we can run to the end of the world." - Small of two pieces, Xenogears |