CInternetFile Class
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

CInternetFile Class

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

class CInternetFile : public CStdioFile

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.

Header: afxinet.h

Show:
© 2016 Microsoft