Explanation to above DriveComboBox problem

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Explanation to above DriveComboBox problem

Postby MarcinF » Thu Dec 16, 2004 3:51 am

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...

Postby Damon » Wed Dec 22, 2004 2:00 am

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.

User avatar
BCBJ Editor and Admin
BCBJ Editor and Admin
Posts: 285
Joined: Wed May 26, 2004 11:25 pm
Location: Stillwater, OK, USA

Return to Technical

Who is online

Users browsing this forum: Google [Bot] and 33 guests