Applies To:
  • CitectSCADA 5.xx, 6.00
  • CitectHMI 5.xx, 6.00

Summary:
ctCicode API returns DWORD and is declared as:

extern DWORD CTAPICALL ctCicode
(HANDLE,LPCSTR,DWORD,DWORD,LPSTR,DWORD,CTOVERLAPPED*);

Help documentation specifies that it should return BOOL as:
BOOL ctCicode(hCTAPI, sCmd, hWin, nMode, sResult, dwLength, pctOverlapped)
 

Solution:
Use casting to BOOL type.
 

Keywords:
ctCicode, BOOL, DWORD, return type, CTAPI  

Attachments