Adapting Invocations

After such a radical change to the object key, existing coding where instances of the object type have to be created will no longer work. The reason for this is that they are not able to create the required Globally Unique Identifier (GUID) key.

Context

For this purpose, new macros are provided that take a logical key as the parameter instead of the object key:

  • SWC_CREATE_OBJECT_FROM_KEY

  • SWC_CREATE_REMOTE_OBJ_FROM_KEY

  • SWC0_CREATE_REM_OBJ_FROM_KEY

  • SWC0_CREATE_OBJECT_FROM_KEY

Procedure

  1. Identify where the instances of the object type are created.
  2. Replace the SWC_CREATE_OBJECT and SWC_CREATE_REMOTE_OBJECT with SWC_CREATE_OBJECT_FROM_KEY and SWC_CREATE_REMOTE_OBJ_FROM_KEY macros, respectively.
  3. Replace the SWC0_CREATE_OBJECT and SWC0_CREATE_REMOTE_OBJECT with SWC0_CREATE_OBJECT_FROM_KEY and SWC0_CREATE_REM_OBJ_FROM_KEY macros respectively.

Results

The application can now handle logical keys.