To share or not to share, this is the question.
Kagamin
spam at here.lot
Mon Oct 17 06:22:55 PDT 2011
Kagamin Wrote:
> Gor Gyolchanyan Wrote:
>
> > My second question is: why the deuce isn't HWND member shared too
> > inside my class?
>
> It should not be shared. And you shouldn't ever pass HWND across threads.
Huh, well, looks like HWND can be shared, see e.g. PostMessage function http://msdn.microsoft.com/en-us/library/ms644944%28VS.85%29.aspx but it seems there's quite restricted set of functions which can deal with a shared handle.
More information about the Digitalmars-d
mailing list