hi
iam using the following code:
-------------------------------------------------------------------
CInternetSession session("My Session");
CStdioFile* pFile = NULL;
CStrig fname = "file://c:\\program files\\example.txt"
TRY
{
unsigned long size = 256;
char target[256];
InternetCanonicalizeUrl(fname, target, &size, ICU_ENCODE_SPACES_ONLY);
fname = (CString)target;
pFile=session.OpenURL(fname);
}
CATCH_ALL(e)
{
CString err;
err.Format("Unable to open file %s ", fname);
AfxMessageBox (err);
THROW_LAST();
}
-------------------------------------------------------------------

after using the "InternetCanonicalizeUrl()", the value in the "fname" variable is changed to
"file://c:\program%20files\example.txt", but still the file is not getting opened using "OpenURL()". can anybody let me know the syntax of this?

Thanx in advance.