GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Connecting to active GenoPro instance

Click to view RSS...
Author How is it possible to connect to running GenoPro instance and fetch the contents of currently opened file?
Posted Wednesday, May 6, 2009 - Post #24046
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.1.5

Last Login: Monday, October 17, 2016
Posts: 19, Visits: 90
Dear support!

I try to connect to running instance of GenoPro from Perl application using Win32::OLE library:
my $genoProApp = Win32::OLE->GetActiveObject('GenoPro.Application') or croak "Unable to connect to GenoPro instance. Make sure GenoPro is running.";

print $genoProApp->GetTextXML();

however, as I understood, the automation object with such name does not exist in the system. How is it possible to connect to running GenoPro instance and fetch the contents of currently opened file?

Thanks!


Edited: Thursday, May 14, 2009 by GenoProSupport
Posted Thursday, May 14, 2009 - Post #24070
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Saturday, May 11, 2024
Posts: 4,887, Visits: 22,766
dma_k (5/6/2009)
How is it possible to connect to running GenoPro instance and fetch the contents of currently opened file?

I would believe so.  The easiest way is to launch GenoPro from your Perl application so you have an handle of the instance, then you fetch the data.  Finding the running instance of GenoPro may require you to use a different API than GetActiveObject().

Posted Friday, May 15, 2009 - Post #24073
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.1.5

Last Login: Monday, October 17, 2016
Posts: 19, Visits: 90
In my tests I always get NULL as a result of GetActiveObject(). Is there any example of using any other COM API call except GetObject("file") (on any programming language)?


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse