Thanks. I got the word demo working in D6  except it's not liking the 
OleVariant being used in the various "EmptyParam" variables (type mismatch). 
Anyone got a tip on what type Word 2000 is expecting here? Thanks!

Dave

--- On Fri, 7/10/09, David Wright <dwri...@chineselaundry.com> wrote:

From: David Wright <dwri...@chineselaundry.com>
Subject: RE: [advanced_delphi] Re: Replacing VB's "WithEvents" in Delphi?
To: advanced_delphi@yahoogroups.com
Date: Friday, July 10, 2009, 7:42 AM











    
            
            


      
      


Pretty sure I posted this back in June, but here it is again 
just to be certain:
http://www.techvang uards.com/ products/ eventsinkimp/
 
It has not been updated since 
2005, but worked fine for my project in Delphi 2009.
 
It can save you a ton of time 
and typing if you are trying to capture COM 
events...



From: advanced_delphi@ yahoogroups. com 
[mailto:advanced_ del...@yahoogrou ps.com] On Behalf Of David 
Smith
Sent: Friday, July 10, 2009 7:34 AM
To: 
advanced_delphi@ yahoogroups. com
Subject: RE: [advanced_delphi] Re: 
Replacing VB's "WithEvents" in Delphi?






  
  
    Could you post a link to that freeware tool? I'd be 
      interested in that.

Dave

--- On Thu, 7/9/09, David Wright 
      <dwri...@chineselaun dry.com> wrote:

      
From: 
        David Wright <dwri...@chineselaun dry.com>
Subject: RE: 
        [advanced_delphi] Re: Replacing VB's "WithEvents" in Delphi?
To: 
        advanced_delphi@ yahoogroups. com
Date: Thursday, July 9, 
        2009, 2:16 PM


        
        
        
        This was an issue with a type 
        library/com import -- and the events were 
undeclared.
         
        Ultimately I wrapped the type library in 
        an component that exposed the events.  It was not pretty, but I 
        found a freeware tool that generated the wrapper all on it's 
        own.
         

        
        
        From: advanced_delphi@ yahoogroups. com 
        [mailto:advanced_ del...@yahoogrou ps.com] On Behalf Of 
        mikcaau
Sent: Monday, June 22, 2009 8:04 PM
To: 
        advanced_delphi@ yahoogroups. com
Subject: [advanced_delphi] 
        Re: Replacing VB's "WithEvents" in Delphi?


        
        
        Dave,
Which event do you want to monitor?
Delphi has many 
        events and if the one you want is not there then you can create a new 
        object, intercept the messages that notify the event change and then 
        fire your own events.

Mick

Mick

--- In advanced_delphi@ 
        yahoogroups. com, "David Wright" <dwri...@... > 
        wrote:
>
> Hi All,
> 
> I have been digging 
        through google and have not been able to find a
> workaround, but 
        I did find a few claims that there is not equivelant to
> 
        WithEvents in Delphi.
> 
> Is this still true?
> 
        
> Here is a snippet of VB code I want to convert:
> Private 
        WithEvents myPS autECLPS
> 
> The entire rest of the API I 
        am working with uses standard events
> processing, but this one 
        last bit it crucial. I would hate to port
> everything to VB this 
        point. My current workaround involves using a
> timer to keep 
        checking for updates, but I would prefer to make this
> event 
        driven instead. Currenltly I can turn on the event, but I cannot
> 
        point it to an actual procedure :(
> 
> Thanks for any 
        thoughts,
> 
    Dave
>




 

      

    
    
        
         
        
        








        


        
        


      

Reply via email to