Re: Creating singleton UNO components in C++

2016-11-02 Thread Stephan Bergmann
On 11/02/2016 02:52 AM, Dennis Francis wrote: Thanks a lot Stephan. Works fine now after implementing component_getImplementationEnvironment and component_getFactory instead of mentioning environment and constructor in .components xml file. Indeed, constructor attributes in .component files are

Re: Creating singleton UNO components in C++

2016-11-01 Thread Dennis Francis
> > For one, the SingletonComponent.components contained an unexpanded > > environment="@CPPU_ENV@" > > attribute. Replace "@CPPU_ENV@" with the actual environment name ("gcc3" > for GCC-based Linux/macOS/etc., "msci" for 32-bit Windows/MSVC, "mscx" for > 64-bit Windows/MSVC; see gb_CPPU_ENV in

Re: Creating singleton UNO components in C++

2016-11-01 Thread Stephan Bergmann
On 11/01/2016 04:49 PM, Dennis Francis wrote: I tried creating a very simple singleton UNO component which just gets/sets a boolean value. The code is hosted at https://github.com/niocs/SingletonComponent . This was created based on http://opengrok.libreoffice.org/xref/core/framework/source/jobs

Creating singleton UNO components in C++

2016-11-01 Thread Dennis Francis
Hello all I tried creating a very simple singleton UNO component which just gets/sets a boolean value. The code is hosted at https://github.com/niocs/SingletonComponent . This was created based on http://opengrok.libreoffice.org/xref/core/framework/source/jobs/jobexecutor.cxx#66 . The component is