Hi, now i switched to SDK 2.2 but the warnings and errors still there.
Michael On 4/30/07, Juergen Schmidt <[EMAIL PROTECTED]> wrote:
Hi Michael, Michael Jeier wrote: > Hi, > > I recently switched from Visual Studio 6 with OOo-SDK 1.02 to Visual Studio > 2005 with OOo-SDK 2.1. Before the switch everything ran fine. > > First of all, now I get a lot of warnings like the following: > c:\openoffice.org2.1.sdk\include\com\sun\star\uno\reference.h(86) : warning > C4290: C++ exception specification ignored except to indicate a function is > not __declspec(nothrow) > Does anybody know, if one can do something about this? > > Second, I cannot compile my projects, because of exceptions concerning the > SDK. They have a big stack trace, so I added one of them to the end of this > mail. How can I fix this??? Please check the 2.2 SDK, i have made some changes to support the MS 2005 compiler. Please submit an issue of it still doesn't work. Juergen > > Regards, > > Michael > > ============ START OF EXCEPTION ================== > > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\simplefontmetric.hpp(63) > > : error C2665: 'getCppuType' : none of the 61 overloads could convert all > the argument types > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\exception.hdl(44): > could be 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Exception *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\container\nosuchelementexception.hdl(38): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::container::NoSuchElementException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\runtimeexception.hdl(38): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::RuntimeException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\typeclass.hdl(57): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::TypeClass *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(244): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Type *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(274): or > 'const com::sun::star::uno::Type &getCppuType(const sal_Bool *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(283): or > 'const com::sun::star::uno::Type &getCppuType(const bool *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(305): or > 'const com::sun::star::uno::Type &getCppuType(const sal_Int8 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(315): or > 'const com::sun::star::uno::Type &getCppuType(const rtl::OUString *) > throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(325): or > 'const com::sun::star::uno::Type &getCppuType(const sal_Int16 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(335): or > 'const com::sun::star::uno::Type &getCppuType(const sal_uInt16 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(345): or > 'const com::sun::star::uno::Type &getCppuType(const sal_Int32 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(355): or > 'const com::sun::star::uno::Type &getCppuType(const sal_uInt32 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(365): or > 'const com::sun::star::uno::Type &getCppuType(const sal_Int64 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(375): or > 'const com::sun::star::uno::Type &getCppuType(const sal_uInt64 *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(385): or > 'const com::sun::star::uno::Type &getCppuType(const float *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\type.h(395): or > 'const com::sun::star::uno::Type &getCppuType(const double *) throw()' > 1> c:\openoffice.org2.1.sdk\include\com\sun\star\uno\any.h(397): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Any > *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xinterface.hdl(44): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XInterface > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\container\xhierarchicalnameaccess.hdl(52): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> > interface_type=com::sun::star::container::XHierarchicalNameAccess > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\mergeconflictexception.hdl(38): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::registry::MergeConflictException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\invalidregistryexception.hdl(38): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::registry::InvalidRegistryException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\xsimpleregistry.hdl(59): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::registry::XSimpleRegistry > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\registrykeytype.hdl(27): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::registry::RegistryKeyType *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\invalidvalueexception.hdl(38): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::registry::InvalidValueException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\registryvaluetype.hdl(33): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::registry::RegistryValueType *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\registry\xregistrykey.hdl(91): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::registry::XRegistryKey > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xcomponentcontext.hdl(47): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XComponentContext > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\xmulticomponentfactory.hdl(54): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::lang::XMultiComponentFactory > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xweak.hdl(40): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XWeak > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xadapter.hdl(42): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XAdapter > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xreference.hdl(39): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XReference > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\uno\xaggregation.hdl(46): > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::uno::XAggregation > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\xtypeprovider.hdl(49): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::lang::XTypeProvider > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\xmultiservicefactory.hdl(53): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::lang::XMultiServiceFactory > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\eventobject.hdl(44): > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::lang::EventObject *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\xeventlistener.hdl(42): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::lang::XEventListener > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\document\eventobject.hdl(46): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::document::EventObject *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\document\xeventlistener.hdl(42): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::document::XEventListener > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\accessibility\accessibleeventobject.hdl(51): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::accessibility::AccessibleEventObject *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\accessibility\xaccessibleeventlistener.hdl(42): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> > interface_type=com::sun::star::accessibility::XAccessibleEventListener > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\point.hdl(44): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::Point *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\fontslant.hdl(31): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::FontSlant *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xtopwindow.hdl(45): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XTopWindow > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xtopwindowlistener.hdl(48): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XTopWindowListener > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xmenu.hdl(59): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XMenu > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xmenubar.hdl(33): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XMenuBar > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\rectangle.hdl(46): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::Rectangle *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xpopupmenu.hdl(51): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XPopupMenu > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\xcomponent.hdl(42): > or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::lang::XComponent > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xwindowpeer.hdl(54): > or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XWindowPeer > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\lang\illegalargumentexception.hdl(42): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::lang::IllegalArgumentException *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\windowclass.hdl(29): > or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::WindowClass *) throw()' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\windowdescriptor.hdl(61): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::WindowDescriptor *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xtoolkit.hdl(62): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XToolkit > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\fontdescriptor.hdl(64): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::FontDescriptor *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\deviceinfo.hdl(52): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::DeviceInfo *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xdevice.hdl(62): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XDevice > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xdisplaybitmap.hdl(33): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XDisplayBitmap > 1> ] > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\simplefontmetric.hdl(48): > > or 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::awt::SimpleFontMetric *)' > 1> > c:\openoffice.org2.1.sdk\includecpp\com\sun\star\awt\xfont.hdl(60): or > 'const com::sun::star::uno::Type &getCppuType(const > com::sun::star::uno::Reference<interface_type> *) throw()' > 1> with > 1> [ > 1> interface_type=com::sun::star::awt::XFont > 1> ] > 1> while trying to match the argument list '(sal_Unicode *)' > > ============ END OF EXCEPTION ================== > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
