EDN Admin
Well-known member
How can i get full path based on the file name by using vc++?
Ive done it by using GetFullPath but it returns the incorrect path..
Below is the code ive done..
<font size=2>
String ^get_full_path = Path::GetFullPath<font size=2>(file_name)</font></font><font size=2>;</font><font color="#008000" size=2> </font><font size=2>
String ^get_file_name = Path::GetFileName(get_full_path);</font><font color="#008000" size=2> </font><font size=2>
Bitmap ^image = </font><font color="#0000ff" size=2>gcnew</font><font size=2> Bitmap(get_file_name);
</font><font color="#0000ff" size=2>this</font><font size=2>->pictureBox1->Image = </font><font color="#0000ff" size=2>safe_cast</font><font size=2><Image^>(image);
Could anyone shows me the correct way to solve this problem?
thanks! </font>
View the full article
Ive done it by using GetFullPath but it returns the incorrect path..
Below is the code ive done..
<font size=2>
String ^get_full_path = Path::GetFullPath<font size=2>(file_name)</font></font><font size=2>;</font><font color="#008000" size=2> </font><font size=2>
String ^get_file_name = Path::GetFileName(get_full_path);</font><font color="#008000" size=2> </font><font size=2>
Bitmap ^image = </font><font color="#0000ff" size=2>gcnew</font><font size=2> Bitmap(get_file_name);
</font><font color="#0000ff" size=2>this</font><font size=2>->pictureBox1->Image = </font><font color="#0000ff" size=2>safe_cast</font><font size=2><Image^>(image);
Could anyone shows me the correct way to solve this problem?
thanks! </font>
View the full article