amazing function behavior

Daniel Keep daniel.keep.lists at
Mon Oct 19 02:39:30 PDT 2009

Zarathustra wrote:
> Function is never called but why?

It shouldn't even COMPILE.

You can't use member functions as Windows callbacks.  You haven't even
used the correct calling convention on it.

Callbacks for Win API functions have to be, I believe, extern(Windows),
and they have to be free functions or static members.

More information about the Digitalmars-d-learn mailing list