Initialize a connection to the AMRP for the specified project.
Syntax
void FormConnection(LPCTSTR project, COR_STATUS* ret_stat)
Data Type
void
Example
This example allocates and initializes a new connection object then tries to connect to a project.
COR_STATUS ret_stat;
CAmvConn *amvConn = new CAmvConn(this,
S_CallbackAddAlarm,
S_CallbackResetContent,
S_CallbackLostAM,
S_MaxAlarms,
S_SetDisplayRedraw,
S_UpdateCount,
S_DoRcmError,
S_DoConnectionFormed,
S_CallbackNotifyAlmGen,
S_CallbackNotifyAlmMod,
S_CallbackNotifyAlmDel);
amvConn->FormConnection(project, &ret_stat);
if(retstat.status != COR_SUCCESS) {
delete amvConn;
MessageBox(ret_stat.err_msg);
return;
}
See Also
CAmvConn::GetConnectedSystem()
CAmvConn class member overview. |