OLE

OLE

Postby driessen » Wed Oct 12, 2005 8:55 am

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
driessen
 
Posts: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: OLE

Postby Enrico Maria Giordano » Wed Oct 12, 2005 9:01 am

Try to not showing Word:

oWord = CREATEOBJECT( "Word.Application" )

// your code here

oWord:Quit()

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

Postby driessen » Thu Oct 13, 2005 9:12 am

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: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Enrico Maria Giordano » Thu Oct 13, 2005 9:25 am

What is CREATEOLEOBJECT()? I never heard or used it.

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

Postby driessen » Thu Oct 13, 2005 9:40 am

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
driessen
 
Posts: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Enrico Maria Giordano » Thu Oct 13, 2005 10:02 am

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
Enrico Maria Giordano
 
Posts: 8310
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby driessen » Thu Oct 13, 2005 12:36 pm

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: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Enrico Maria Giordano » Thu Oct 13, 2005 12:39 pm

Search for VBA*.CHM in your hard disk.

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

Postby driessen » Thu Oct 13, 2005 1:00 pm

Enrico,

Thanks.

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

Postby Guest » Fri Oct 14, 2005 9:57 am

Look at and this you it helps

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

Friendlily
john
Guest
 

Postby driessen » Fri Oct 14, 2005 12:05 pm

Thanks, John, for your tip.

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

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 5 guests