Hi:
I am a developer and I meet with a problem in uno,so I turn to you for help.
The sourcecode version is : 680_m120
I wrote a new component but it didn't work.
I hope the new component can be called from a different process through a
socket connection.
(But it can only be called successfully on localhost)
My work takes the following steps :
1.Write the specification for the new component:
module com { module sun { module star { module task {
published interface XProcessMSG : com::sun::star::uno::XInterface
{
[oneway] void process( [in] string msg );
};
}; }; }; };
module com { module sun { module star { module task {
published service ProcessMSG
{
interface com::sun::star::task::XProcessMSG;
interface com::sun::star::lang::XInitialization;
};
}; }; }; };
2.Build project offapi (Compile the idl file);
3.Build project offuh (Generate source code);
4.Implement core interfaces and my own interfaces (Located in project sfx2):
sfx2/inc/communication.hxx
...................
...................
// Core interfaces
virtual Any SAL_CALL queryInterface( const Type& aType )throw(
RuntimeException );
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
virtual Sequence< Type > SAL_CALL getTypes() throw( RuntimeException );
virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(
RuntimeException );
virtual OUString SAL_CALL getImplementationName() throw( RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const OUString& serviceName )
throw( RuntimeException );
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(
RuntimeException );
static OUString SAL_CALL impl_getStaticImplementationName();
static Sequence< OUString > SAL_CALL impl_getStaticSupportedServiceNames();
static Reference< XSingleServiceFactory > SAL_CALL impl_createFactory(
Reference< XMultiServiceFactory > xServiceManager );
// My own interface
virtual void SAL_CALL process( const OUString& msg ) throw(
RuntimeException );
...................
...................
5.Add registration info in "sfx2/source/appl/appuno.cxx" ;
6.Build project sfx2;
7.Merge the binary type descriptions into "services.rdb" and "types.rdb" .
I also tried to rebuilding the hole project,and then reinstall the openoffice.
And I found the rdb files("services.rdb" and "types.rdb") contain the right
binary type descriptions.
Sincerely
yours,WangBin
2005-10-25
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]