Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Double value precision Pin
Chuck O'Toole9-Dec-11 16:52
Chuck O'Toole9-Dec-11 16:52 
QuestionAccess ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider46-Dec-11 9:06
MacRaider46-Dec-11 9:06 
QuestionRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
David Crow7-Dec-11 6:17
David Crow7-Dec-11 6:17 
AnswerRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider47-Dec-11 6:47
MacRaider47-Dec-11 6:47 
AnswerRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider47-Dec-11 7:27
MacRaider47-Dec-11 7:27 
AnswerRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
jkirkerx7-Dec-11 8:38
professionaljkirkerx7-Dec-11 8:38 
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider47-Dec-11 9:24
MacRaider47-Dec-11 9:24 
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
jkirkerx7-Dec-11 10:49
professionaljkirkerx7-Dec-11 10:49 
MacRaider4 wrote:
with the move to 2008, Access 2000 and 2010 and VS 2010.


I don't have an answer, just thoughts about the process.

I know it was a access database, quite clear, but over time now in 2012, they sort of became the same to me, with very slight differences, from the client code perspective.

I was still thinking about your issue while eating lunch, and 2 things stick in my mind, which is the first call (Line 1), and then the next call below. I guess the code below was a fragment, and is never sent as a request. Must of been a test command to check for sanity.

CString xstrSQL = _T("SELECT TOP 1 * FROM CHKPARAM");


The other is the execution process, There all kind of the same, but yours was different.
Make Connection Object
Make and set SQL Command Object
Make Reader and Execute SQL Command
Wait and Read Results
Close Reader, Connection Objects
Destroy Objects

Overall, all I can think of since it fails on both Access 2000 and 2010, is that VS2010 called up a more modern version of ODBC, and that your current code sent out the proper credentials and established a valid session, made the execute request, the response was returned, but is getting lost, stuck, or not being sent at all back to the client, or the reader object was not able to load the response, because it's still working on the previous response.

The Microsoft world has changed alot since the days of VS6, Access 2000 and Server 2000. Technologies sort of have to match up like your original working project.
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider48-Dec-11 1:09
MacRaider48-Dec-11 1:09 
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
jkirkerx9-Dec-11 11:29
professionaljkirkerx9-Dec-11 11:29 
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
MacRaider412-Dec-11 1:32
MacRaider412-Dec-11 1:32 
GeneralRe: Access ODBC issue/question in MFC Application CDatabase Class Pin
jkirkerx12-Dec-11 4:20
professionaljkirkerx12-Dec-11 4:20 
QuestionTextOut/DrawText is too slow Pin
Joe Smith IX6-Dec-11 6:32
Joe Smith IX6-Dec-11 6:32 
AnswerRe: TextOut/DrawText is too slow Pin
Chris Losinger6-Dec-11 8:45
professionalChris Losinger6-Dec-11 8:45 
GeneralRe: TextOut/DrawText is too slow Pin
Albert Holguin6-Dec-11 14:34
professionalAlbert Holguin6-Dec-11 14:34 
GeneralRe: TextOut/DrawText is too slow Pin
Chris Losinger6-Dec-11 15:13
professionalChris Losinger6-Dec-11 15:13 
GeneralRe: TextOut/DrawText is too slow Pin
Albert Holguin6-Dec-11 16:00
professionalAlbert Holguin6-Dec-11 16:00 
GeneralRe: TextOut/DrawText is too slow Pin
Joe Smith IX7-Dec-11 3:10
Joe Smith IX7-Dec-11 3:10 
AnswerRe: TextOut/DrawText is too slow Pin
Software_Developer6-Dec-11 15:30
Software_Developer6-Dec-11 15:30 
AnswerRe: TextOut/DrawText is too slow Pin
JackDingler9-Dec-11 10:10
JackDingler9-Dec-11 10:10 
QuestionDesigning file processing application Pin
Member 3287156-Dec-11 4:07
Member 3287156-Dec-11 4:07 
AnswerRe: Designing file processing application Pin
Albert Holguin6-Dec-11 5:30
professionalAlbert Holguin6-Dec-11 5:30 
GeneralRe: Designing file processing application Pin
JackDingler6-Dec-11 6:17
JackDingler6-Dec-11 6:17 
AnswerRe: Designing file processing application Pin
Luc Pattyn6-Dec-11 6:10
sitebuilderLuc Pattyn6-Dec-11 6:10 
QuestionAccessing file from a remote location Pin
_AnsHUMAN_ 6-Dec-11 1:12
_AnsHUMAN_ 6-Dec-11 1:12 

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.