Olivier Sannier via fpc-pascal wrote:

Hello,

You should cast to TWindowClass as TWindow is used to cast an instance, not a class reference.

Note that you may not have TWindowClass, in which case you need to declare it like this:

type
    TWindowClass = class of TWindow;

OK. A typecast with TWindowClass works.

Thanks,

Adriaan van Os

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to