Hi,
1) I've tried the code in:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Establishing_Interprocess_Connections
However, it fails at the following call: // instantiate a sample service
with the service manager.
Reference< XInterface > rInstance =
rServiceManager->createInstanceWithContext(
OUString::createFromAscii("com.sun.star.bridge.UnoUrlResolver" ),
rComponentContext );A null object was returned.
2) I have also tried to set the UNO_PATH as an environment variable. I set it
as "C:\program files\openoffice 4\program". However, the bootstrap exception
was thrown: "No soffice installation!".
Thanks.
> Date: Thu, 19 Sep 2013 12:31:47 +0200
> From: jogischm...@gmail.com
> To: api@openoffice.apache.org
> Subject: Re: cppu::bootstrap() does not work with OpenOffice 4.0.0
>
> On 9/19/13 12:14 PM, Ariel Constenla-Haile wrote:
> > Hi,
> >
> > On Thu, Sep 19, 2013 at 01:46:16PM +0800, Wei Min Teo wrote:
> >> Hi all, Thanks for all replies. The OS that I tested on is
> >> Windows XP. The reason why I started a openoffice process in
> >> listening mode is to run an invisible instance that runs in the
> >> background for automated tasks. Ariel Constenla-Haile have
> >> tested that the simple bootstrap example from the SDK. Anything
> >> else I can try? Are there alternate methods to bootstrap?
> >
> > Yes. If the simple bootstrap mechanism is broken, you have to use
> > the old method of first starting the office listening for
> > interprocess connections.
> >
> > Documentation:
> > http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/UNO_Interprocess_Connections
> >
> >
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Establishing_Interprocess_Connections
> >
> > Sample code: - in the SDK installation, C++ examples using the
> > com.sun.star.bridge.UnoUrlResolver
> >
> > examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx
> > examples/cpp/DocumentLoader/DocumentLoader.cxx
> >
> > - there is a C++ "connection aware client" in
> > http://svn.apache.org/viewvc/openoffice/devtools/sdk-examples/trunk/cpp/cppbindings/ConnectionAwareClient/
> >
> >
> or setting the UNO_PATH variable to specify exactly which office
> should be used. In case of testing this should be used anyway.
> Otherwise the default office on the system is used but probably not
> wanted for the test.
>
> The fix for the bootstrap problem is available.
>
> Juergen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: api-h...@openoffice.apache.org
>