VCL event handler in a DLL

From: Claire (ease_at_wanadoo.fr)
Date: 05/23/04

  • Next message: Nicholas Sherlock: "Re: Get some Info..."
    Date: Sun, 23 May 2004 17:51:07 +0200
    
    

    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 := '192.168.100.1'

    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.

    Claire


  • Next message: Nicholas Sherlock: "Re: Get some Info..."

    Relevant Pages

    • VCL event handler in a DLL
      ... I'm writing a DLL, which uses Indy TidHTTP VCL component, and I dont know ... how to assign an event handler to it. ...
      (comp.lang.pascal.delphi.misc)
    • Re: VCL event handler in a DLL
      ... >>I'm writing a DLL, which uses Indy TidHTTP VCL component, and I dont ... >>know how to assign an event handler to it. ... > not a normal procedure ...
      (alt.comp.lang.borland-delphi)
    • Re: pop Up Window from .cs file
      ... I dont think that is going to work for me either. ... private void ResetButton_Click(object sender, ... // Code that will pop-up a window ... the ResetButton_Click event handler in the website.aspx.cs file. ...
      (microsoft.public.dotnet.framework.aspnet.webcontrols)
    • Re: Repeat an ASP:Image button
      ... I dont know how to calculate that. ... You can bind the same event handler to multiple buttons dynamically. ... Figuring the screen resolution of the ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Javascript error
      ... I dont' see why. ... If you add the code to an event handler, ... The event handler will take care of ... cancelling the operation for you. ...
      (microsoft.public.scripting.jscript)