Click here to Skip to main content
15,905,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
For all possible ODBC error codes, you can see the MSDN for ODBC Programmer's Reference Appendix A: ODBC Error Codes.

In order to see the true error caused by your application, catch all return values by type SQL_ERROR and then seeing CDBException::m_strStateNativeOrigin. In this string, the first 'State' string can be found from the ODBC Error Codes list.

From the forementioned list, the state code 08004 means 'Server rejected the connection'. This, by using free intrepretation, can be understood as 'Invalid logon' as well.

There is an ODBC Query Tool around in CodeProject that has a source code attached. If you can't find any other solution, try browsing through this source code and seeing how it handles return values from the ODBC driver manager.

The tool's page can be found from here[^]. Written by George Poulose.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
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 
GeneralRe: Transparent line & Status bar gripper Pin
sschilachi30-Mar-04 9:10
sschilachi30-Mar-04 9:10 
GeneralProject planning Pin
Alexander M.,30-Mar-04 7:31
Alexander M.,30-Mar-04 7:31 
GeneralRe: Project planning Pin
Prakash Nadar30-Mar-04 8:05
Prakash Nadar30-Mar-04 8:05 

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.