|
-
September 4th, 2011, 04:37 AM
#1
[RESOLVED] Get path from openFileDialog
I´m writing a windows form application.
Consider this code:
if(openFileDialog1->ShowDialog() == System::Windows::Forms: ialogResult::OK)
{
System::IO::Path::GetDirectoryName(openFileDialog1->FileName);
MessageBox::Show(openFileDialog1->FileName, "Directory");
}
How can i store/write the result presenting in MessageBox to a file called "c:\path.txt",
instead of presenting the result in the MessageBox?
I would be eternally grateful for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|