Zhang Xiaofei a écrit : > Hi Mikhail, > > Thanks for your last reply. I fixed the problems in your advice, and > some more during the compilation process, but there are still two > errors(as in error.log in the attachment), both of which seems to me > are originated from data type mismatches. Could you please tell me the > causes of and solutions to the errors? You have mainly 2 constructors problems.
The first one is an inheritance problem. The class ::cppu::PropertySetMixin<css::io::XTempFile> from which you herit do not have any constructor without args. You need to find the appropriate constructor and call it in the implementation of your own class ctor. Something like this : OTempFileService::OTempFileService() : property1(init_args), property2(), ::cppu::PropertySetMixin<::com::sun::star::io::XTempFile>(init_args) {} The second one is because you give him a set of css::Type instead of a simple css::Type. That's what the compiler says : "cannot convert parameter 1 from 'com::sun::star::uno::Sequence<E>' to 'const com::sun::star::uno::Type &' with[E=com::sun::star::uno::Type]" The first parameters of your ctor is OTempFileBase::getTypes() which obviously returns a _sequence_ of css::Type. And you need a simple css::Type in this ctor. Possible Solution : Look in the ::cppu::TypeCollection class on how to add all thoses Types. But it seems you cannot add them during creation. My 2 cents, hope this helps, I haven't touched any of uno class yet. It's just advice from a C++ dev. Regards, -- Loiseleur Michel - SLL - 08000LINUX 27, rue de Berri 75008 PARIS Tél/Fax : 01 58 18 68 28 / 01 58 18 68 29 "Ce n'est pas le logiciel qui est libre, c'est vous" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]