Re:[GD-Windows] Windows in .NET :(
Brought to you by:
vexxed72
From: Joe C. <jo...@mu...> - 2002-09-06 19:54:57
|
Hmm... Well adding an empty wndproc wasn't enough. I had to set the cursor and icon as well. Looks like it still complains about an invalid menu handler but it doesn't crash anymore :) The window is only used to get the wgl extensions. Basically create a fake window, get the wgl extensions and then destroy the window. I guess .NET is a bit pickier than vc6 libs. As far as .NET being horribly broken... well one could argue that the change from workspaces to solutions is broken. It definately does not behave the same as vc6 workspaces. ;) Thanks, -Joe Javier Arevalo wrote: Brian Sharon <bs...@mi...> wrote: >(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. > That would definitely hurt a lot. :) In case oyu wonder if .NET is horribly broken or something, we compiled the full Praetorians source code in both managed and non-managed modes with VS.NET. We had to make five or six syntax changes, we were hit by one code generation bug regarding float constants, and we were appalled by the trouble that managed C++ has with virtual function calls (fixed in the next version I believe). Other than that, the entire game ran just fine. >>-----Original Message----- >>From: Joe Collins [mailto:jo...@mu...] >> >>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 >> The mousewheel was not available in windows 95, therefore if you want to use it you must specify that you won't be supporting Win98. All this is explained in the MSDN help entry for WM_MOUSEWHEEL. We simply defined them ourselves to avoid messing with equally obscure include-control macros: #ifndef WM_MOUSEWHEEL #define WM_MOUSEWHEEL 0x020A #endif #ifndef MSH_MOUSEWHEEL #define MSH_MOUSEWHEEL 0xC7B1 #endif Javier Arevalo Pyro Studios |