OLE

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

OLE

Post by driessen »

I use OLE the make a connection between my FiveWin-application and MS-Word.

Word is launched together with my application. If I close Word accidently, I got an error "Variant type not implemented from OLE GetProperty", followed by a GPF.

My question : how can I test that a OLE is running ?

Thank you.

Michel D.
Genk (Belgium)
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: OLE

Post by Enrico Maria Giordano »

Try to not showing Word:

oWord = CREATEOBJECT( "Word.Application" )

// your code here

oWord:Quit()

EMG
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Thank you very much for you help, Enrico.

I was able to solve my problem.

You mentioned CREATEOBJECT. It must be CREATEOLEOBJECT.

Michel D.
Genk (Belgium)
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Enrico,

The function CreateObject() doesn't exist. I got an error while compiling.

You can look in the sample OLE.PRG where CreateOLEobject() is used.

Michel
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Sorry Michel, now I know that OLE2.LIB offers CREATEOLEOBJECT() while xHarbour offers CREATEOBJECT(). I always used TOleAuto() with FW/Clipper and OLE2.LIB.

EMG
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Enrico,

I need to build a connection between my FiveWin application and Outlook through OLE.

Have you any experience in this ?

Do you know where the instructions, to be used for Outlook, can be found ?

Thank you.

Michel
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Enrico,

Thanks.

Michel
Guest

Post by Guest »

Look at and this you it helps

http://www.dbsoft.gr/ole2/OleOutlook.zip

Friendlily
john
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Thanks, John, for your tip.

Unfortunately, this link doesn't exist anymore.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply