Send a new alarm comment to the AMRP. On return, ret_stat->status is COR_SUCCESS if no errors were encountered.
If this method fails, you will need to call CAmvConn::BreakConnection().
Syntax
void AddComment(const AlarmInfo *pAI, LPCTSTR comment,
COR_STATUS* ret_stat);
Data Type
void
Example
Add a comment to an alarm. If successful, update the display.
COR_STATUS ret_stat;
amvConn->AddComment(alarminfo_ptr, CommentStr, &ret_stat);
if(ret_stat.status == COR_SUCCESS) {
ListComments();
} else {
MessageBox(IDS_ERRLOSTAM);
}
CAmvConn class member overview. |