Hello everyone,
I’m trying to write a little GUI based on the root- TG*-classes under Visual Studio c++ 2008. Now i’m trying to open a TGFileDialog to get a filename (see below). When doing this it produces an Unhandled exception
as soon as it tries to invoke:
virtual void MapRaised() { gVirtualX->MapRaised(fId); }
I’m not really getting why this is happening as though i have to admit i’m quite a beginner with GUI-Applications.
Thank you much for your help in advance
Moritz
[code]
void MainWindow::openFile()
{
//Type for the files allowed
const char filetypes[] = {".lma"};
//Initial directory
TString directory(“C:\temp\”);
TGFileInfo file_info;
file_info.fFileTypes = filetypes;
file_info.fIniDir = StrDup(directory);
//Open the dialox box
fd = new TGFileDialog(gClient->GetRoot(), this, kFDOpen, &file_info);
}[/code]
Peakfinding 2.0.rar (1.76 MB)