FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ole With Events
Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Ole With Events
Posted: Wed Dec 24, 2008 03: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

Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Ole With Events
Posted: Wed Dec 24, 2008 05: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Ole With Events
Posted: Wed Dec 24, 2008 06: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
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Ole With Events
Posted: Thu Dec 25, 2008 06:32 AM

Hi

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

Regards

Anser

Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Ole With Events
Posted: Sun Dec 28, 2008 09: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. Oskar 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"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Ole With Events
Posted: 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
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Ole With Events
Posted: Mon Dec 29, 2008 04: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.

Continue the discussion