Hi,
after i did coment out two lines in SimpleFontMetric.hpp
namespace com { namespace sun { namespace star { namespace awt {
inline ::com::sun::star::uno::Type const &
cppu_detail_getUnoType(::com::sun::star::awt::SimpleFontMetric const *) {
//TODO: On certain platforms with weak memory models, the following code
can result in some threads observing that the_type points to garbage
static ::typelib_TypeDescriptionReference * the_type = 0;
if (the_type == 0) {
::typelib_TypeDescriptionReference * the_members[] = {
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType(),
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType(),
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType(),
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType()
//,
// ::getCppuType(static_cast< ::sal_Unicode *
(0)).getTypeLibType(),
// ::getCppuType(static_cast< ::sal_Unicode *
(0)).getTypeLibType()
};
::typelib_static_struct_type_init(&the_type, "
com.sun.star.awt.SimpleFontMetric", 0, 6, the_members, 0);
}
return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
}
} } } }
and one line in the file keyevent.hpp
namespace com { namespace sun { namespace star { namespace awt {
inline ::com::sun::star::uno::Type const &
cppu_detail_getUnoType(::com::sun::star::awt::KeyEvent const *) {
//TODO: On certain platforms with weak memory models, the following code
can result in some threads observing that the_type points to garbage
static ::typelib_TypeDescriptionReference * the_type = 0;
if (the_type == 0) {
::typelib_TypeDescriptionReference * the_members[] = {
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType(),
// ::getCppuType(static_cast< ::sal_Unicode *
(0)).getTypeLibType(),
::getCppuType(static_cast< ::sal_Int16 * >(0)).getTypeLibType()
};
::typelib_static_struct_type_init(&the_type, "
com.sun.star.awt.KeyEvent", ::getCppuType(static_cast<
::com::sun::star::awt::InputEvent * >(0)).getTypeLibType(), 3, the_members,
0);
}
return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
}
} } } }
i have no more compiler errors, but i get linker errors like this
error LNK2001: unresolved external symbol
_typelib_static_mi_interface_type_init
Regards,
Michael
On 4/30/07, Michael Jeier <[EMAIL PROTECTED]> wrote:
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]
>
>