Connecting to active GenoPro instance
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



Connecting to active GenoPro instance Expand / Collapse
Author
Message
Post #24046 Posted 5/6/2009 6:40:07 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 8/4/2009 4:04:48 AM
GenoPro Version: 2.0.1.5
Posts: 25, Visits: 70
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!
Post #24070 Posted 5/14/2009 11:07:17 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:16:25 AM
GenoPro Version: 2.5.0.2
Posts: 3,639, Visits: 15,178
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().

Post #24073 Posted 5/15/2009 6:52:31 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 8/4/2009 4:04:48 AM
GenoPro Version: 2.0.1.5
Posts: 25, Visits: 70
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)?
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:18 AM

Copyright 1998-2009 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.