General information
Category:
COM/DCOM and OLE Automation
Title:
Cannot attach to running COM-EXE
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only