What does No message in the DB (-10026) error mean?
No message in the DB: No message in the message queue You can load them all at once. So you have to program the while statement in the OnSecsMsg event handler as shown below. Make sure that the message receiving event is a While statement as follows:
while (m_XComPro.LoadSecsMsg (& lMsgId, & nDevId, & nStrm, & nFunc, & lSysByte, & nWbit)> = 0) {}