Unable to use RegisterClass(&WndClass);

Craig Chandler craig.chandler at interdynamics.com
Tue Aug 14 18:39:21 CDT 2001


> Hello all.
>
> According to MSDN all classes in Win32 are local.
>
> My experiments under Win2000 show that user32 always turns off
> CS_GLOBALCLASS (actually even "system" classes doesn't have it set)
> and does fix hInstance to the module handle.
>
> The attached patch tries to do the same in Wine.
>
> Comments, suggestions?
> --
> Dmitry.
>
>

ok, played around with both patches, both refuse to start the application
with errors in invalid class names. Changed my own source to rename the
"button" class to my own custom name ("ifbutton") and it starts fine. (so
the original class.c works). Had a whole lot of other errors but i'll get to
them later. I'm reading up on how to debug wine at the moment (i'm a new
user) so hopefully i'll get some more usefull info to you later.





More information about the wine-devel mailing list