|
Go4Expert Founder
|
![]() |
| 11Oct2007,13:05 | #11 |
|
My VC Compiler gives the correct output provided you use GetBuffer and not Getbuffer.
|
|
Go4Expert Member
|
|
| 11Oct2007,13:12 | #12 |
|
yes i am using the GetBuffer(); earlier that was a typing mistake,,
still not getting the right output..., r u getting the whole string in the char * argument??? |
|
Go4Expert Founder
|
![]() |
| 11Oct2007,17:57 | #13 |
|
Yup.
|
|
Go4Expert Member
|
|
| 11Oct2007,18:00 | #14 |
|
well god knows what's wrong then.......
but i'll tell you it's not that simple i have found several queries similar to mine , but neither of the solutions provided there are useful. anyways thanks for your time |
|
Go4Expert Member
|
|
| 13Oct2007,17:44 | #15 |
|
here is the correct solution use this version of fopen
Code:
int let;
UpdateData();
const wchar_t * g_application_path = (LPCTSTR) m_browse_file;
FILE * file = _tfopen(g_application_path ,_T("rb"));
if(!file)
{
let = GetLastError();
MessageBox(_T("ERROR! file not found ..."));
exit(0);
}
else
MessageBox(_T("OK File found ..."));
Last edited by shabbir; 13Oct2007 at 18:09.. Reason: Code block |

