Friday, July 10, 2009

RE: [advanced_delphi] Re: Replacing VB's "WithEvents" in Delphi?



Pretty sure I posted this back in June, but here it is again just to be certain:
http://www.techvanguards.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_delphi@yahoogroups.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 <dwright@chineselaundry.com> wrote:

From: David Wright <dwright@chineselaundry.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_ delphi@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" <dwright@... > 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
>




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

0 comments: