DSTRICT: commdlg

Alexandre Julliard julliard at winehq.com
Sat Oct 26 11:59:11 CDT 2002

"Dimitrie O. Paun" <dpaun at rogers.com> writes:

> On October 26, 2002 11:14 am, Matthew Davison wrote:
> > -  chf32a->hInstance=chf16->hInstance;
> > +  chf32a->hInstance=(HINSTANCE)(ULONG_PTR)chf16->hInstance;
> Shouldn't we have a HINSTANCE_32 macro, for uniformity?

No; as a rule you cannot convert HINSTANCE simply by casting. In some
cases you can use the MapHModule functions, in other cases the code
has to be changed to work properly.

Alexandre Julliard
julliard at winehq.com

More information about the wine-devel mailing list