Initializing Class Data

HMODULE   hModule;
   :
   :
SOM_Scope void SOMLINK pwfoldercls_wpclsInitData(M_PWFolder *somSelf)
{
    CHAR  ErrorBuffer[100];                     /* Error buffer          */

    /* M_PWFolderData *somThis =
                      M_PWFolderGetData(somSelf); */
    M_PWFolderMethodDebug("M_PWFolder",         /* Set debug info        */
                          "pwfoldercls_wpclsInitData");

    DosLoadModule((PSZ) ErrorBuffer,            /* Get module handle     */
                  sizeof(ErrorBuffer),          /* Size of error buffer  */
                  "PWFOLDER",                   /* Name of DLL           */
                  &hModule);                    /* Module handle         */

    parent_wpclsInitData(somSelf);              /* Allow default proc    */
}


[Back: Registering a Workplace Shell Object Class]
[Next: Freeing Class Data Items]