Board index » cppbuilder » TDriveComboBox ... exception when changing drive thats not ready

TDriveComboBox ... exception when changing drive thats not ready

Hi.

Im working with the above mentioned component, and I get the
EInOutError when I choose a dir which is not ready.
I cant find out where to put the "try catch statement".
Because the exception occurs not with one of my function calls but
Internally in the component.
So what do I do.
Where am I to put the try catch block ?

Med venlig hilsen / best regards

Thue Tuxen S?rensen
Denmark

 

Re:TDriveComboBox ... exception when changing drive thats not ready


Try calling the Win32 API function SetErrorMode() wih the
SEM_NOOPENFILEERRORBOX flag before you use the TDriveComboBox.  That will
prevent the the OS from issuing an exception and pass the error to
TDriveComboBox to handle itself internally.

Gambit

Thue Tuxen S?rensen <t...@mail.astondot.com> wrote in message
news:3b14f44b_2@dnews...

Quote
> Im working with the above mentioned component, and I get the
> EInOutError when I choose a dir which is not ready.

Other Threads