2005/5/10

     
 

Type mappings in the ACDKX COM

artefaktur

| Install | acdkx::com::ComObject man | acdkx::com::AcdkObject | Type mappings |


How the types and interfaces of the COM word will be transated into the ACDK world.


Content of this chapter:

     Basic Types
     Strings
     Object types
     Exceptions
   Enhanced DMI functions
     Overloading
     Named Parameters
     OUT
     BYVAL




 Basic Types

Basic types will be passed with a COM VARIANT in the best fitting type.

 Strings

COM BSTR will be converted tino acdk::lang::Strings and vice versa.

 Object types

COM Objects (IDispatch*) will be wrapped with a  acdkx::com::ComObject and vice versa.
ACDK Objects will be wrapped into  IAcdkObject ("Acdk.Object") and vice versa.

 Exceptions

Exceptions are not supported by COM. In the Interface an Error information for the COM side will be generated.

 Enhanced DMI functions


 Overloading

COM doesn't support overloading.
ACDK supports alternative names for ambigious names.
You can use the  Attribute MethodAltNameAttribute to set the alternative unique method name.


Default values for parameters AcdkObject supports default values for parameters.

 Named Parameters

Not supported.

 OUT

OUT-Parameters are supported in both ways with all supported types.

 BYVAL

Not supported yet.