I need to switch from fullscreen to window mode so that I can use the file_dialog command however when I try:

video_switch(0,0,2);
char* filename = file_dialog("Load Saved Game","*.ssv");
video_switch(0,0,1);

I get a DirectX driver error. How can I solve this?

Is there a way how to use the file_dialog in fullscreen?
Or how can I switch to window mode and back without this error. I tried using the freeze_mode = 2; before and after freeze_mode = 0; but the error still occured.

Last edited by Ercoles; 05/13/11 15:14.