SOM_Resolve - Remarks

The SOM_Resolve macro invokes the somResolve function to obtain a pointer to the static method procedure that implements the specified method for the specified object. This pointer can be used for efficient repeated casted method invocations on instances of the class of the object on which the resolution is done, or instances of subclasses of this class. The name of the class that introduces the method and the name of the method must be known to use this macro. Otherwise, use the somResolveByName, somFindMethod or somFindMethodOk method.

The SOM_Resolve macro can only be used to obtain a method procedure for a static method (one defined in the IDL specification for a class); not a dynamic method. Unlike the SOM_ResolveNoCheck macro, the SOM_Resolve macro performs several consistency checks on the object pointed to by objPtr.


[Back: SOM_Resolve - Parameters]
[Next: SOM_Resolve - Expansion]