Click here to Skip to main content
15,915,044 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
cmk wrote:
c) Why not test the connection before you use it ? If bad reconnect. There shouldn't be any reason for the app to crash.


I've done this in another module for this application, but it's unreliable because (AFAIR) the code which checks if the database handle is alive (it does a "SELECT GETDATE()") generally crashes if the HDBC is dead. Doesn't do it all the time, which is why I've written it this way. Catching 25% of problems is better than catching none at all.

I might try the connection pooling method and see how I get on with that. It's certainly goin to give better results than I've been getting to date.

Thanks for your help
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 
AnswerRe: Restarting your application Pin
Cyrilix25-Jul-07 4:15
Cyrilix25-Jul-07 4:15 
GeneralRe: Restarting your application Pin
Programm3r25-Jul-07 4:25
Programm3r25-Jul-07 4:25 

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.