Rahul Kulkarni wrote:
Can somebody tell me following:
1. The difference between the UNOIDL types: Type and Any.
'Type' is a meta type: each value of type Type identifies a UNO type.
Possible values for type Type are (in an adhoc, non-official notation)
<the type String>, <the type Sequence of Long>, <the type interface
com.sun.star.beans.XPropertySet>, <the type Any> or <the type Type>.
'Any' is a variant type. An instance of Any can hold a value of any UNO
type or VOID (=no value). Thus an any basically consist of a Type value
and a value of the type identified by that Type (e.g. <String, "Hallo">,
<Long,12345>, <Type, <the type Boolean>>, ...).
2. Why we need to write the SAL_CALL before the method name? What it does?
It allows prescribing a certain calling convention on platforms that
support multiple calling conventions for member functions. AFAIK this is
currently #defined to nothing for all platforms except MS Windows, where
it could be something like __cdecl or __stdcall (iirc it is __cdecl).
This is necessary to enforce a defined binary interface on those
platforms (which in turn is needed by the C++ bridge).
HTH, Joerg
--
Joerg Barfurth Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer [EMAIL PROTECTED]
OpenOffice.org Configuration http://util.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]