_di_IOTAModuleServices ModuleServices = NULL;assert(BorlandIDEServices->Supports(ModuleServices));_di_IOTAProject Proj = ModuleServices->GetActiveProject(); assert(Proj!=NULL);const int ModuleCount = Proj->GetModuleCount();for(int i=0; i<ModuleCount; i++) { _di_IOTAModuleInfo ModuleInfo = Proj->GetModule(i); _di_IOTAModule Module = ModuleInfo->OpenModule(); // далее работа с открытым модулем...}
//---------------------------------------------------------------------------// __testunit__.h//--------------------------------------------------------------------------- //----- Опечатки в именах переменныхstruct POINT_{ int x, y;}; struct CSize{ CSize(POINT_ pt) { cx = pt.x; cx = pt.y; } int cx, cy;}; //---------------------------------------------------------------------------// __testunit__.cpp//--------------------------------------------------------------------------- #include "__testunit__.h"#include <string.h>#pragma package(smart_init) #define CONT_MAP_MAX 50 void Foo(){ //----- Не до конца очищенный массив int nArray[CONT_MAP_MAX]; memset(nArray, -1, CONT_MAP_MAX); //----- Забытое разыменование указателя char* pSlash = "splash"; while(pSlash) { pSlash++; if (pSlash != '\0') *pSlash = '!'; } //----- Некорректный цикл int i, k, l; for (i=0; i<10; i++) { for (k=i; i<10; k++) { if (pSlash[k]=='>') break; } l = k; }}