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

C / C++ / MFC

 
GeneralAdding a data source question Pin
hiseldl4-Sep-02 10:00
hiseldl4-Sep-02 10:00 
GeneralRe: Adding a data source question Pin
Bill Wilson4-Sep-02 11:03
Bill Wilson4-Sep-02 11:03 
GeneralRe: Adding a data source question Pin
hiseldl4-Sep-02 11:18
hiseldl4-Sep-02 11:18 
GeneralRe: Adding a data source question Pin
Pavel Klocek4-Sep-02 12:05
Pavel Klocek4-Sep-02 12:05 
GeneralRe: Adding a data source question Pin
hiseldl5-Sep-02 5:38
hiseldl5-Sep-02 5:38 
GeneralRe: Adding a data source question Pin
Pavel Klocek5-Sep-02 5:43
Pavel Klocek5-Sep-02 5:43 
Generalgraceful exit, and safeguards - help! Pin
ns4-Sep-02 9:45
ns4-Sep-02 9:45 
GeneralRe: graceful exit, and safeguards - help! Pin
Chris Losinger4-Sep-02 10:00
professionalChris Losinger4-Sep-02 10:00 
ns wrote:
If by chance or perversity the user chooses a random folder with none of the expected images in it, a grand crash ensues. How can I exit gracefully in case this happens?

IMO, the real question you should be asking is "why is there a crash at all?" you should be checking for possible error situations everywhere, and acting accordingly at all times. it's a bad idea to assume every situation is a good one.

if you really need to exit immediately, try PostQuitMessage. but, that's really not much better than simply crashing, since the user has no clue as to what went wrong in either case.

-c



"I am angry that so many of the sons of the powerful and well-placed... managed to wangle slots in Reserve and National Guard units...Of the many tragedies of Vietnam, this raw class discrimination strikes me as the most damaging to the ideal that all Americans are created equal and owe equal allegiance to their country."
--Colin Powell

GeneralRe: graceful exit, and safeguards - help! Pin
Stephane Rodriguez.4-Sep-02 10:44
Stephane Rodriguez.4-Sep-02 10:44 
GeneralRe: graceful exit, and safeguards - help! Pin
Tomasz Sowinski4-Sep-02 23:01
Tomasz Sowinski4-Sep-02 23:01 
GeneralCRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 9:06
Hadi Rezaee4-Sep-02 9:06 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 10:22
Matthew R. Miller4-Sep-02 10:22 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 10:34
Hadi Rezaee4-Sep-02 10:34 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 10:45
Matthew R. Miller4-Sep-02 10:45 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 10:51
Hadi Rezaee4-Sep-02 10:51 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:50
Matthew R. Miller4-Sep-02 15:50 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 12:33
Hadi Rezaee4-Sep-02 12:33 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:53
Matthew R. Miller4-Sep-02 15:53 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:57
Matthew R. Miller4-Sep-02 15:57 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 16:00
Matthew R. Miller4-Sep-02 16:00 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 22:43
Hadi Rezaee4-Sep-02 22:43 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller5-Sep-02 4:35
Matthew R. Miller5-Sep-02 4:35 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee5-Sep-02 5:31
Hadi Rezaee5-Sep-02 5:31 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller5-Sep-02 7:51
Matthew R. Miller5-Sep-02 7:51 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee5-Sep-02 10:44
Hadi Rezaee5-Sep-02 10:44 

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.