HellOOo, I solved this problem by using XMultiComponentFactory instead XMultiServiceFactory which requires comphelper stuff.
But it seems that setPropertyValue always throws an exception : http://lxr.go-oo.org/source/gsl/vcl/source/components/display.cxx#267 Or maybe am I doing the wrong way ? //BEGIN Reference< XInterface > xInterfaceDisplayAccess = xMultiComponentFactoryServer->createInstanceWithContext( OUString::createFromAscii( "com.sun.star.awt.DisplayAccess" ), xComponentContext ); Reference< XPropertySet > xMonProps ( xInterfaceDisplayAccess, UNO_QUERY ); const OUString sPropName( RTL_CONSTASCII_USTRINGPARAM( "DefaultDisplay" ) ); //some monitor, 0 for primary one sal_Int8 iDefaultDisplay = 1; //fails here... xMonProps->setPropertyValue( sPropName, makeAny( iDefaultDisplay ) ); //END I also wonder where can I find documentation about this service ? Maybe it has answers to my questions ? Regards, Sharpminded ps : Maybe this is not the right place to discuss that, please tell me if I'm too disturbing. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
