I have another question right now.
I want to use this Sequence of structs like that one:
struct sChildWindow {
long m_sID
Reference< XWindow > m_sWindow;
};
but when I declare the Sequence like this :
Sequence< sChildWindow > m_xChildren;
the linker returns an error :
"none of the 105 overloads can convert parameter 1 from type 'const
com::sun::star::uno::Sequence<E>::ElementType *'
with E=sChildWindow"
then follows a long list of overloads
and finally :
"while trying to match the argument list '(const
com::sun::star::uno::Sequence<E>::ElementType *)'
with E=sChildWindow"
and some more information, that doesn't seem important.
I thought that maybe the template doesn't work because the struct is not
typedef,
but I tried typedefing it and it didn't work either. Is it possible that,
despite the
template, the Sequence class only works for the 105 mentioned types ?
What should I do if that's the case ?
Yes, you are right. The com::sun::star::uno::Sequence can only use UNO
based types and not self-defined C++ types. If you only need a container
for your type, just use STL. If you have to use a
com::sun::star::uno::Sequence, you have to define your struct with a UNO
IDL file.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]