Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNetwork availability change events Pin
JT Anderson30-Mar-04 9:15
JT Anderson30-Mar-04 9:15 
GeneralRe: Network availability change events Pin
David Crow30-Mar-04 9:20
David Crow30-Mar-04 9:20 
GeneralRe: Network availability change events Pin
JT Anderson30-Mar-04 9:43
JT Anderson30-Mar-04 9:43 
GeneralStretchBlt replacement Pin
#realJSOP30-Mar-04 9:07
professional#realJSOP30-Mar-04 9:07 
GeneralRe: StretchBlt replacement Pin
Prakash Nadar30-Mar-04 14:56
Prakash Nadar30-Mar-04 14:56 
GeneralRe: StretchBlt replacement Pin
#realJSOP31-Mar-04 0:57
professional#realJSOP31-Mar-04 0:57 
GeneralRe: StretchBlt replacement Pin
Prakash Nadar31-Mar-04 2:12
Prakash Nadar31-Mar-04 2:12 
GeneralSpecified driver could not be located due to system error 5 Pin
ElizabethC30-Mar-04 8:30
ElizabethC30-Mar-04 8:30 
I am testing my application on different client machines. The application got into an infinate loop when trying to open the database using ODBC. The error message says "Specified driver could not be located due to system error 5...". I am trying to track it down to exit the application when this occurs, but need help figuring out the value at m_nRetCode. There is a bunch of them from MSDN library. I tried

catch(CDBException* e)
{
//exit if not invalid user name and password
if (e->m_nRetCode==AFX_SQL_ERROR_API_CONFORMANCE || e->m_nRetCode == AFX_SQL_ERROR_CONNECT_FAIL
|| e->m_nRetCode == SQL_INVALID_HANDLE || e->m_nRetCode == AFX_SQL_ERROR_ODBC_LOAD_FAILED
|| e->m_nRetCode == AFX_SQL_ERROR_SQL_CONFORMANCE)
{
AfxMessageBox("Database Logon Error - " + e->m_strError);
exit(1);
return NULL;
}
else
AfxMessageBox("Database Logon Error, invalid user name or password - " + e->m_strError);
goto TRY_AGAIN;
}

But none of these is the correct one.

-Elizabeth

Elizabeth
GeneralRe: Specified driver could not be located due to system error 5 Pin
Antti Keskinen30-Mar-04 8:40
Antti Keskinen30-Mar-04 8:40 
GeneralRe: Specified driver could not be located due to system error 5 Pin
ElizabethC30-Mar-04 8:53
ElizabethC30-Mar-04 8:53 
GeneralRe: Specified driver could not be located due to system error 5 Pin
Antti Keskinen30-Mar-04 21:22
Antti Keskinen30-Mar-04 21:22 
GeneralRe: Specified driver could not be located due to system error 5 Pin
ElizabethC31-Mar-04 7:18
ElizabethC31-Mar-04 7:18 
Questionhow to draw a font with outline effect Pin
Cleung30-Mar-04 8:21
Cleung30-Mar-04 8:21 
AnswerRe: how to draw a font with outline effect Pin
basementman30-Mar-04 11:25
basementman30-Mar-04 11:25 
GeneralColeDateTime Pin
aman200630-Mar-04 8:15
aman200630-Mar-04 8:15 
GeneralRe: ColeDateTime Pin
Prakash Nadar30-Mar-04 14:54
Prakash Nadar30-Mar-04 14:54 
GeneralCHtmlView_Search_demo.zip sample Pin
includeh1030-Mar-04 8:10
includeh1030-Mar-04 8:10 
GeneralRe: CHtmlView_Search_demo.zip sample Pin
Alexander M.,30-Mar-04 8:26
Alexander M.,30-Mar-04 8:26 
GeneralRe: CHtmlView_Search_demo.zip sample Pin
Neville Franks30-Mar-04 9:41
Neville Franks30-Mar-04 9:41 
GeneralRe: CHtmlView_Search_demo.zip sample Pin
Prakash Nadar30-Mar-04 14:52
Prakash Nadar30-Mar-04 14:52 
Generalapplication skin Pin
ppp00130-Mar-04 7:51
ppp00130-Mar-04 7:51 
GeneralRe: application skin Pin
David Crow30-Mar-04 7:54
David Crow30-Mar-04 7:54 
GeneralRe: application skin Pin
Alexander M.,30-Mar-04 8:25
Alexander M.,30-Mar-04 8:25 
GeneralTransparent line & Status bar gripper Pin
sschilachi30-Mar-04 7:33
sschilachi30-Mar-04 7:33 
GeneralRe: Transparent line & Status bar gripper Pin
David Crow30-Mar-04 7:52
David Crow30-Mar-04 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.