Indy event handler in a DLL

Giganews Newsgroups
Subject: Indy event handler in a DLL
Posted by:  Claire (ea…
Date: Sun, 23 May 2004

I'm writing a DLL, which uses Indy TidHTTP VCL component, and I dont know
how to assign an event handler to it.

There is no problem with setting proprieties, for instance:
IdHTTP1.Host := ''

but when I try to write
IdHTTP1.OnWorkEnd := MyOnWorkEndHandler

the compiler raises the message

"Incompatible Types: method pointer and regular procedure".

Thanks in advance for help.