Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionbuffer Pin
dellthinker25-Jul-07 13:51
dellthinker25-Jul-07 13:51 
QuestionRe: buffer Pin
Mark Salsbery25-Jul-07 14:09
Mark Salsbery25-Jul-07 14:09 
AnswerRe: buffer Pin
ThatsAlok25-Jul-07 20:09
ThatsAlok25-Jul-07 20:09 
AnswerRe: buffer Pin
Karismatic25-Jul-07 20:59
Karismatic25-Jul-07 20:59 
QuestionConversion to hexa Pin
AAKAra25-Jul-07 8:33
AAKAra25-Jul-07 8:33 
AnswerRe: Conversion to hexa Pin
Mark Salsbery25-Jul-07 9:47
Mark Salsbery25-Jul-07 9:47 
AnswerRe: Conversion to hexa Pin
Mark Salsbery25-Jul-07 19:02
Mark Salsbery25-Jul-07 19:02 
QuestionODBC connection going bad -- what to do? Pin
Robin Hilliard25-Jul-07 7:21
Robin Hilliard25-Jul-07 7:21 
hi -

I've been working on a large multi-threaded VC++ 6.0/MFC application for some years and use ODBC as the main database service provider to a backend database in SQL Server 2000.

For one client's application, though, we notice that the ODBC connection disappears from time to time (their database generally resides on a different machine) and the application crashes when it makes a database request over a handle that's gone bad. As the application has recently started transporting real money, this is unacceptable and I need to know the answers to two questions:

1. Is it possible for the ODBC driver to alert me when it determines that a connection has died, rather than leaving me find out the hard way? The application is idle perhaps 98% of the time and a temporary outage caused by a resurrect-on-connection-death is going to affect the performance far less than a system crash.

2. If there is no answer to (1), is there an alternative to ODBC that will give me this functionality - either something (a) that is stateless and which will allow me to query, read and write the database without requiring handles or (b) or which has a fast connect, so that I can make a connection every time that I need to do something or (c) something that doesn't crash when the connection is lost? You can assume that I'm going to continue using VC++ 6.0/MFC for the foreseeable future.

thanks folks,

- robin.
AnswerRe: ODBC connection going bad -- what to do? Pin
cmk25-Jul-07 13:04
cmk25-Jul-07 13:04 
GeneralRe: ODBC connection going bad -- what to do? Pin
Robin Hilliard25-Jul-07 13:53
Robin Hilliard25-Jul-07 13:53 
QuestionWhy does not Command Prompt window have WndProc ? Pin
Ky Nam25-Jul-07 7:04
Ky Nam25-Jul-07 7:04 
AnswerRe: Why does not Command Prompt window have WndProc ? Pin
Jonathan [Darka]25-Jul-07 7:08
professionalJonathan [Darka]25-Jul-07 7:08 
GeneralRe: Why does not Command Prompt window have WndProc ? Pin
Ky Nam25-Jul-07 15:02
Ky Nam25-Jul-07 15:02 
QuestionVideo via Positional Data Pin
Andy20225-Jul-07 5:17
Andy20225-Jul-07 5:17 
QuestionIs there any built in separator control in MFC? Pin
Mushtaque Nizamani25-Jul-07 4:23
Mushtaque Nizamani25-Jul-07 4:23 
AnswerRe: Is there any built in separator control in MFC? Pin
Iain Clarke, Warrior Programmer25-Jul-07 4:35
Iain Clarke, Warrior Programmer25-Jul-07 4:35 
GeneralRe: Is there any built in separator control in MFC? Pin
Mushtaque Nizamani25-Jul-07 5:00
Mushtaque Nizamani25-Jul-07 5:00 
GeneralRe: Is there any built in separator control in MFC? Pin
David Crow25-Jul-07 5:11
David Crow25-Jul-07 5:11 
GeneralRe: Is there any built in separator control in MFC? Pin
Iain Clarke, Warrior Programmer25-Jul-07 5:51
Iain Clarke, Warrior Programmer25-Jul-07 5:51 
AnswerRe: Is there any built in separator control in MFC? Pin
Michael Dunn25-Jul-07 11:17
sitebuilderMichael Dunn25-Jul-07 11:17 
AnswerRe: Is there any built in separator control in MFC? Pin
Don Box25-Jul-07 19:03
Don Box25-Jul-07 19:03 
GeneralRe: Is there any built in separator control in MFC? Pin
DevMentor.org27-Jul-07 8:21
DevMentor.org27-Jul-07 8:21 
AnswerRe: Is there any built in separator control in MFC? Pin
Haroon Sarwar25-Jul-07 19:19
Haroon Sarwar25-Jul-07 19:19 
QuestionRestarting your application Pin
Programm3r25-Jul-07 4:07
Programm3r25-Jul-07 4:07 
AnswerRe: Restarting your application Pin
Iain Clarke, Warrior Programmer25-Jul-07 4:13
Iain Clarke, Warrior Programmer25-Jul-07 4:13 

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.