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 ..."));
just wanted to help if any one had similar problem

Last edited by shabbir; 13Oct2007 at 18:09.. Reason: Code block