On 08/12/09 07:52, Wei Min Teo wrote:
I've only recently managed to get the sdk to be configured to the VS2008
environment. I tried to get the document loader example to work but it returns
the following error:
Unhandled expcetion at 0x000000b8...... Access violation reading location......
at this line of code:Reference < XComponent > xComponent =
xComponentLoader->loadComponentFromURL(.....);
Nothing happens in the program, but i think an instance of the component is
created because it has an address. However, no interface pops out or anything.
Or does that only happen when i loadcomponent? Or am i passing argv[1] wrongly?
How do i resolve this? Thanks.
Cheers,
Wei Min
Previously, I had the following runtime errors:
"Error: cannot establish a connection using 'uno:socket,host=localhost,
post2083;urp;StarOffice.ServiceManager' Connector : couldn't connect to socket
<WSANOTINITIALISED, WSAStartup() has not been called>"
Resolved by:
WSADATA wsaData;WSAStartup(MAKEWORD(2,2), &wsaData);
"Error: cannot establish a connection using 'uno:socket,host=localhost,
post2083;urp;StarOffice.ServiceManager' Connector : couldn't connect to socket
<WSACONNREFUSED, Connection refused>"
Resolved by:
soffice "-accept=socket,host=localhost,port=2083;urp;"
What exact version of SDK (and OOo) do you use? The WSAStartup error is
most probably the root of your problems. On Windows, when the SDK
document loader example application (or any other application, for that
matter) wants to communicate with the OOo application, it does so using
the winsock library, which needs to be initialized to work properly.
This initialization code moved around a bit in OOo 3.x (it used to be in
the sal library, but had to be moved to the applications themselves).
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]