Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot attach to running COM-EXE
Message
From
07/05/2002 22:44:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Cannot attach to running COM-EXE
Miscellaneous
Thread ID:
00653827
Message ID:
00653827
Views:
56
I've created a simple out-of-process com-exe which has a gui interface.

It has an OLE-public class with one method.

I can instantiate the COM-object from other programs like Word or VB or VFP using the createobject()-function.

The problem is: if I first start the program as a stand-alone program and then later on try to attach to the running process using the getobject()-function (again in Word or VB or VFP), I always get an OLE-error 0x800401e3.

If I use oRef1=createobject() first and later oRef2=getobject(), getobject() works fine.

Does anyone have an idea?

The goal is to achive a better Office-integration, launch Word from VFP (createobject(word.application)), let the user do some stuff in word, an then be able to tell VFP when the user has finished his task in Word and trigger some (public) method in VFP.

Thanks for any help.
Reply
Map
View

Click here to load this message in the networking platform