Ole With Events

Ole With Events

Postby Carlos Mora » Wed Dec 24, 2008 3:50 pm

¡Merry christmas!

first, forgive my english, it's not one of my strongest points.

Ive uploaded a new class OleWithEvent, wich adds event controls to the actual OLE class.

The first sample is made just with Harbour, console mode, without FW, and shows the basic usage with ADO.

http://www.ziddu.com/download/5958441/O ... 1.zip.html

The second sample uses FW, in fact is a slightly modified version of TestxBrw2.prg from FW's samples directory, changed to use ADO and show some events.

http://www.ziddu.com/download/5958440/O ... 2.zip.html

Both proyects are made with xMate, so if you want to recompile may be you should adjust the environment in the proyect. Binaries of the test are included, and 100% of the code .

This class can be get better yet, because it doesn't recognizes events by name, just by ID, but with current implementation it can be used.


Hope you enjoy this,


(*) The file hosting has been changed @ 17 Ago 2009
Last edited by Carlos Mora on Mon Aug 17, 2009 8:00 am, edited 1 time in total.
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Wed Dec 24, 2008 5:55 pm

Carlos,

Have you considered to include it in Harbour/xHarbour ?

That would be a great contribution :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Wed Dec 24, 2008 6:00 pm

Carlos,

After reviewing its source code, I guess that you should adapt it to Harbour/xHarbour own OLE functions and Class, so your changes could be included in the current repositories files.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby anserkk » Thu Dec 25, 2008 6:32 am

Hi

Sounds very interesting. There are lot of possibilities in this area, especially ADO with events

Regards

Anser
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Postby Carlos Mora » Sun Dec 28, 2008 9:48 pm

Antonio,
of course! all the source code will be available to be included in Harbour! Is a must and a honour.

Respect to change the current implementation of TOleAuto, it won't be necesary because in the new release it is made like a subclass, making things simpler. _ made some observations and pointed some missinterpretations that I commited and then the code was rethinked and rebuilt.

I've been seek this days, (%$·$& flu) but today i get hands on again and the new release is working. I just spect to clear the code and add a little bit of documentation.

ansekk,

Just look into the samples! If you get a good doc about ADO you should find the events. From the docs you will get the name of the events and when they happen, then make a test and capture the event 0, that works like an * and gets ANY event, the first parameter is in fact the event ID, so you can obtain the corresponding ID for each event.

Very soon, after getting the class ready to be added to Harbour, I will make the complete catalog of ID for ADO, meanwhile you can work with the curren release.

Best regards
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Sun Dec 28, 2008 11:59 pm

Carlos,

> all the source code will be available to be included in Harbour! Is a must and a honour

Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby anserkk » Mon Dec 29, 2008 4:40 am

Mr.Carlos,

Thank you very much

ansekk,

Just look into the samples! If you get a good doc about ADO you should find the events. From the docs you will get the name of the events and when they happen, then make a test and capture the event 0, that works like an * and gets ANY event, the first parameter is in fact the event ID, so you can obtain the corresponding ID for each event.

Very soon, after getting the class ready to be added to Harbour, I will make the complete catalog of ID for ADO, meanwhile you can work with the curren release.
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 96 guests