How to receive events from objects?

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to receive events from objects?

Post by Antonio Linares »

Jose,

You said it! :-)

You are using an old Harbour!!!

Please try it with Harbour 3.2. That may solve it. Your version is too old.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Jose Dolar
Posts: 52
Joined: Thu Mar 22, 2012 5:43 pm
Location: USA

Re: How to receive events from objects?

Post by Jose Dolar »

Antonio,

Looks like that's the logical direction now. I think I have now a case to request for upgrade.

I hope it will solve the issue without diving more deeper down to the author of 'Ole for Retail'.

Regards,

Jose :)
Jose Dolar
Posts: 52
Joined: Thu Mar 22, 2012 5:43 pm
Location: USA

Re: How to receive events from objects?

Post by Jose Dolar »

Antonio,

Good news, the runtime error was resolved by the latest Harbour and FWH. The handler seems successfully registered as shown in the code below. The device is working fine also.

However there is no any event's callback.

Do we need more steps (codes) to catch events?

Please advise. :(

Thank you,

Jose

Code: Select all

alert('About to register '+::acProgID[i] + ' Handler')      
__axRegisterHandler( ::&cPropName:__hObj, {| ...| MsgInfo( 'Test') },'{B196B284-BAB4-101A-B69C-00AA00341D07}')
alert(::acProgID[i] + ' Handler registered')
 
Post Reply