Connect OOo

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
AndrewB
Posts: 2
Joined: Wed Aug 26, 2009 5:08 pm

Connect OOo

Post by AndrewB »

Hi all,

I'm a beginner of OOO-prgramming. My main-target is to open/create/change new dokuments in swriter.
After one week with google (with many frustrations) I'm ready to compile simple samples.
Very importend help I found here: "http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx"

But at this point my pain starts. If I'm run my app it crashes. In debug I get following
message: Unhandled exception at 0x7c812afb in test_1.exe: 0xC06D007E: Module not found.

This error comes from first call of:
Reference< XMultiServiceFactory > ooConnect(){
// create the initial component context
Reference< XComponentContext > rComponentContext =
defaultBootstrap_InitialComponentContext();

This is from sample from this site: "http://wiki.services.openoffice.org/wik ... xecutable)"


It's a simple win32 app. It seems to me I'm get no connection to OO.
Any help in universe?`


PS: WinXP SP3; VS2008Pro, OpenOffice.org 3.1.0 (OO310m11(Build:9399)), SDK 3.1
PPS: I'm reading following links(and more), but found nothing to solve my problem.

"http://wiki.services.openoffice.org/wik ... he_OOo_SDK"
"http://wiki.services.openoffice.org/wik ... OOoImpress"
"http://www.oooforum.org/forum/viewtopic.phtml?t=11128"
"http://wiki.services.openoffice.org/wik ... xecutable)"
"http://csourcesearch.net/cpp/fid443BAFC ... def:parser"
WinXP SP3, OpenOffice 3.1.0 (OO310m11(Build:9399)), SDK 3.1, VS2008Pro
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: connect ooo

Post by TheGurkha »

Can't help with your question above, but have you seen the ODF Toolkit Project? That might be of interest.
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
AndrewB
Posts: 2
Joined: Wed Aug 26, 2009 5:08 pm

Re: Connect OOo

Post by AndrewB »

Thank you for link. But I need some solutions for c++. I believe it is trouble with Bootstrapping - I read a lot of threads.
If I find some I will post here.
WinXP SP3, OpenOffice 3.1.0 (OO310m11(Build:9399)), SDK 3.1, VS2008Pro
arnavpoch
Posts: 2
Joined: Tue Oct 07, 2008 9:41 am

Re: Connect OOo

Post by arnavpoch »

Hi Andrew,
AndrewB wrote:If I'm run my app it crashes. In debug I get following
message: Unhandled exception at 0x7c812afb in test_1.exe: 0xC06D007E: Module not found.

This error comes from first call of:
Reference< XMultiServiceFactory > ooConnect(){
// create the initial component context
Reference< XComponentContext > rComponentContext =
defaultBootstrap_InitialComponentContext();
It is very likely that you did not set the application path to the OOo dlls. See

Code: Select all

OOo::FindInstallAndSetPath() 
in my article or set the correct path in your VS2008 project->properties->debug tab.

cheers,
AR
Post Reply