> > You got me there. But it still seems daft to me that you can't
> > validate the link you have asked for.
>
> CHttpFile's QueryInfoStatusCode() returns the HTTP status
> code - you could check that?
Fantastic stuff! This seems to work fine:
if(pWebFile != NULL)
{
if( pWebFile->QueryInfoStatusCode(
dwStatusCode ) )
{
if( dwStatusCode >= 400 &&
dwStatusCode < 500 )
{
// Not found!
AfxMessageBox(
IDS_STR_INVALID_URL,
MB_OK|MB_ICONERROR );
}
else
{
Andrew
This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.