Hello everyone. I have attached a folderBrowserDialog1 to my Form1.
To a button I will do a function.
What I will do now is when I press the button, I want to open this folderBrowserDialog wich works fine.
After this I will click on a folder wich contains *.txt Files and press OK.
What will happen now is that all these .txt files names will appear in my textBox1.
I am trying this code out but really dont know what could be wrong.
I am trying to first FindFirstFile() but my compiler doesn´t compile.
What could be missing ?
folderBrowserDialog1->ShowDialog();
HANDLE h;
WIN32_FIND_DATA lpFileName;
h = ::FindFirstFile(folderBrowserDialog1->SelectedPath, &lpFileName);
this->textBox1->Text = h;
Thanks