Dela via


CInternetFile Class

Allows access to files on remote systems that use Internet protocols.

class CInternetFile : public CStdioFile

Remarks

Provides a base class for the CHttpFile and CGopherFile file classes. You never create a CInternetFile object directly. Instead, create an object of one of its derived classes by calling CGopherConnection::OpenFile or CHttpConnection::OpenRequest. You also can create a CInternetFile object by calling CFtpConnection::OpenFile.

The CInternetFile member functions Open, LockRange, UnlockRange, and Duplicate are not implemented for CInternetFile. If you call these functions on a CInternetFile object, you will get a CNotSupportedException.

To learn more about how CInternetFile works with the other MFC Internet classes, see the article Internet Programming with WinInet.

Requirements

Header: afxinet.h

Smart Device Developer Notes

The Smart Device version of CInternetFile Class does not support the following methods:

See Also

Reference

CStdioFile Class

Hierarchy Chart

CInternetConnection Class

Other Resources

CInternetFile Members