Exemplo n.º 1
0
bool CDBL_Connection::Refresh()
{
    // close all commands first
    DeleteAllCommands();

    // cancel all pending commands
    if (Check(dbcancel(GetDBLibConnection())) != CS_SUCCEED)
        return false;

    // check the connection status
    return DBDEAD(GetDBLibConnection()) == FALSE;
}
Exemplo n.º 2
0
CConsole::~CConsole ( void )
{
    // Delete all our commands
    DeleteAllCommands ();
}