Kaydet (Commit) 24409e8e authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS sdk01 (1.1.4.1.6); FILE MERGED

2003/04/10 11:32:44 jsc 1.1.4.1.6.1: #108799# use new naming convention for uno components
üst 97811193
...@@ -36,8 +36,8 @@ int SAL_CALL main(int argc, char **argv) ...@@ -36,8 +36,8 @@ int SAL_CALL main(int argc, char **argv)
Reference< XSimpleRegistry > xReg = createSimpleRegistry(); Reference< XSimpleRegistry > xReg = createSimpleRegistry();
OSL_ENSURE( xReg.is(), "### cannot get service instance of \"com.sun.star.regiystry.SimpleRegistry\"!" ); OSL_ENSURE( xReg.is(), "### cannot get service instance of \"com.sun.star.regiystry.SimpleRegistry\"!" );
xReg->open(OUString::createFromAscii("counter.rdb"), sal_False, sal_False); xReg->open(OUString::createFromAscii("counter.uno.rdb"), sal_False, sal_False);
OSL_ENSURE( xReg->isValid(), "### cannot open test registry \"counter.rdb\"!" ); OSL_ENSURE( xReg->isValid(), "### cannot open test registry \"counter.uno.rdb\"!" );
Reference< XComponentContext > xContext = bootstrap_InitialComponentContext(xReg); Reference< XComponentContext > xContext = bootstrap_InitialComponentContext(xReg);
OSL_ENSURE( xContext.is(), "### cannot creage intial component context!" ); OSL_ENSURE( xContext.is(), "### cannot creage intial component context!" );
...@@ -55,9 +55,9 @@ int SAL_CALL main(int argc, char **argv) ...@@ -55,9 +55,9 @@ int SAL_CALL main(int argc, char **argv)
xImplReg->registerImplementation( xImplReg->registerImplementation(
OUString::createFromAscii("com.sun.star.loader.SharedLibrary"), // loader for component OUString::createFromAscii("com.sun.star.loader.SharedLibrary"), // loader for component
#ifdef UNX #ifdef UNX
OUString::createFromAscii("libcounter.so"), // component location OUString::createFromAscii("counter.uno.so"), // component location
#else #else
OUString::createFromAscii("counter.dll"), // component location OUString::createFromAscii("counter.uno.dll"), // component location
#endif #endif
Reference< XSimpleRegistry >() // registry omitted, Reference< XSimpleRegistry >() // registry omitted,
// defaulting to service manager registry used // defaulting to service manager registry used
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment