Page 1 of 1

OLE

Posted: Wed Oct 12, 2005 8:55 am
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)

Re: OLE

Posted: Wed Oct 12, 2005 9:01 am
by Enrico Maria Giordano
Try to not showing Word:

oWord = CREATEOBJECT( "Word.Application" )

// your code here

oWord:Quit()

EMG

Posted: Thu Oct 13, 2005 9:12 am
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)

Posted: Thu Oct 13, 2005 9:25 am
by Enrico Maria Giordano
What is CREATEOLEOBJECT()? I never heard or used it.

EMG

Posted: Thu Oct 13, 2005 9:40 am
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

Posted: Thu Oct 13, 2005 10:02 am
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

Posted: Thu Oct 13, 2005 12:36 pm
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

Posted: Thu Oct 13, 2005 12:39 pm
by Enrico Maria Giordano
Search for VBA*.CHM in your hard disk.

EMG

Posted: Thu Oct 13, 2005 1:00 pm
by driessen
Enrico,

Thanks.

Michel

Posted: Fri Oct 14, 2005 9:57 am
by Guest
Look at and this you it helps

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

Friendlily
john

Posted: Fri Oct 14, 2005 12:05 pm
by driessen
Thanks, John, for your tip.

Unfortunately, this link doesn't exist anymore.