PDA

View Full Version : Undefined identifier error C8025



Steve Sumner
07-24-2002, 11:02 AM
I get the following complication errors


utils.rul(578) : error C8025: 'OBJ_STATUS_SUCCESS' : undefined identifier
utils.rul(579) : error C8025: 'MDAC_STATUS_SUCCESS_REBOOT_NEEDED' : undefined identifier
utils.rul(580) : error C8025: 'MDAC_STATUS_NOREBOOT_REQUIRED' : undefined identifier


Of course I can define these myself but am not sure of there correct values

RobertDickau
07-25-2002, 02:16 PM
Is this a new project, or one you've migrated from InstallShield Professional? What function in utils.rul is using those constants?

Steve Sumner
07-25-2002, 03:14 PM
This is a conversion from verion 6.3 to 7


function CheckObjectsForErrors(szObjNameArray)

OBJECT objCheck;
NUMBER nIndex;
BOOL bRet;

begin
nIndex = 0;
bRet = TRUE;
return bRet;

while (szObjNameArray(nIndex) != "" )

set objCheck = GetObject(szObjNameArray(nIndex));

if (IsObject(objCheck)) then
if (objCheck.Status.Number != OBJ_STATUS_SUCCESS &&
objCheck.Status.Number != MDAC_STATUS_SUCCESS_REBOOT_NEEDED &&
objCheck.Status.Number != MDAC_STATUS_NOREBOOT_REQUIRED) then

SprintfBox(SEVERE, g_szSetupTitle + @MSGBOX_TITLE_SEVERE, @ERR_IS_OBJECT,
szObjNameArray(nIndex),
objCheck.Status.Number,
objCheck.Status.Description);
bRet = FALSE;
endif;
else
SprintfBox(SEVERE, g_szSetupTitle + @MSGBOX_TITLE_SEVERE, @ERR_IS_OBJECT_NOT_FOUND, szObjNameArray(nIndex));
bRet = FALSE;
endif;

nIndex++;
endwhile;

return bRet;
end;

RobertDickau
07-26-2002, 09:07 AM
You should be able to remove that code: it looks as if it's intended for the InstallShield 6 MDAC Object, which Developer doesn't use; a Developer project uses the MDAC merge module instead, which isn't quite the same thing...