In my project (Borland C++ Builder, Windows Xp ) am using following code for opening the file
TOpenDialog *OpenDialog;
OpenDialog->Filter = "all files (*.*)";
OpenDialog->InitialDir="::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
OpenDialog->Execute();
But the "My computer" tab is empty its not showing the drives. Rest "My Rescent Documnets" , "Desktop", "My Documents", "My network drives" all are showing the folders or drives in them.
I had created a new project in BCB with the same above code in that its working fine. When i am including this new project files in my old project again the error is reproducable.
I tried to use OpenFileDialog the code as follows :-
OpenFileDialog *OpenFileDialog1 = new OpenFileDialog;
OpenFileDialog1->Filter = "all files (*.*)";
OpenFileDialog1->InitialDir="::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
OpenFileDialog1->Execute();
this is giving compliation error : Undefined symbol 'OpenFileDialog'
Help me out to figure out the problem