#include #include static struct FolderMethods _folderMethods = { 0 }; struct FolderMethods *Folder_getMethods() { int i; if (_folderMethods.GetChildNameAt == -1) return 0; if (_folderMethods.GetChildNameAt == 0) { i = get_methods("Folder", (int*)&_folderMethods); if (i < 0) { _folderMethods.GetChildNameAt = -1; return 0; } } return &_folderMethods; } int Folder_GetChildNameAt(Object object, int pos, char *to) { struct FolderMethods *folder = Folder_getMethods(); if (folder == 0) return E_NOT_IMPLEMENTED; return Call(folder->GetChildNameAt, object, pos, to, 0, 0); }