Page 1 of 1

CommonFileDialog problem when want to show it

Posted: Tue Oct 02, 2012 14:28
by LarriPapi
I need some help with CommonFileDialog because when through event call this code:

CEGUI::Window* mainWindow = CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Root");
CEGUI::CommonFileDialogInput input;
input.setHandle (1); // Set the handle to determine the originator
input.setFilter ("Archive (*.jpg)|*.jpg|"); // Extensions
input.setOpenFileDialog (true); // Load mode
input.setDefaultExtension ("*.jpg"); // jpg is the first one to display
CEGUI::CommonFileDialog::getSingleton().openDialog(input); // Open the common file dialog

And I don't view any window and give an internal runtime error. I debug the code and all it's good, but when pass through :


in CommonFileDialog constructor don't show the window. I appreciate any help with it to can terminate the app in which I'm working right now.
Thanks in advance.

Re: CommonFileDialog problem when want to show it

Posted: Tue Oct 02, 2012 16:45
by Kulik
First of all, posting your question multiple times will just make us angry and less likely to respond to you.
I have removed all of your necromancing attempts. Please don't do this kind of shit again. Thanks!

Now, to the problem. I am not familiar with common file dialogs, I can advice you to post the logs so others have a higher chance of being able to help you.