Page 1 of 1

Explanation to above DriveComboBox problem

PostPosted: Thu Dec 16, 2004 3:51 am
by MarcinF
Exception occurs on event. When during program run-time i choose drive a:
In this event OnChangeDriveComboBox there is no code.Component automatically detects drives etc etc...

PostPosted: Wed Dec 22, 2004 2:00 am
by Damon
You need to disable the error checking by using the SetErrorMode() Win32 function...

Code: Select all
def_err_mode_ = SetErrorMode(SEM_FAILCRITICALERRORS);

Later, you should restore the previous error mode via...

Code: Select all

You may be able to get away with calling these functions in response to the OnEnter and OnExit events, respectively.