4 messages in com.mysql.lists.plusplusRe: I'd like my program to run even i...
FromSent OnAttachments
Olaf van der Spek29 Nov 2000 08:34 
Olaf van der Spek30 Nov 2000 01:34 
Matthew Stanfield30 Nov 2000 11:53 
lan...@seacoms.com30 Nov 2000 12:36 
Subject:Re: I'd like my program to run even if the connection to mysql fails.
From:Matthew Stanfield (matt@propertyknowledge.com)
Date:11/30/2000 11:53:21 AM
List:com.mysql.lists.plusplus

Are there any examples out there on how to catch the exception?

Lance, This is an example of catching exceptions using MFC in Vis C++ 6. (I'm using MyODBC).

CDatabase *db = new CDatabase(); try { db->OpenEx("DSN=MySQLPAF", CDatabase::noOdbcDialog); } catch (CDBException) { char s[] = "DB EXCEPTION CAUGHT"; printf("\n%s", s); }

HTH,

..matthew