Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am a beginner.
i want to read away.bmp file

CString strSate;
strState.Format(_T("../TestData/away.bmp")); // A
strState.Format(_T("..\\estData\\away.bmp")); // B

A or B ?
else what?

i need help
Posted
Updated 17-Sep-14 1:30am
v3
Comments
E.F. Nijboer 17-Sep-14 7:33am    
......................................Try to open a file using a and b and see what happens.
[no name] 17-Sep-14 7:36am    
A has the most chance to work since it looks more like a valid path. B is not the same as A. If B had a T in front of estData then they should both work. Simply trying it would have been a lot faster than posting here though.

1 solution

None of them :-)
Probably you meant
C++
strState.Format(_T("..\\TestData\\away.bmp"));
 
Share this answer
 
Comments
Gihan Liyanage 17-Sep-14 7:42am    
He is funny .. 5 for your answer
CPallini 17-Sep-14 8:54am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900