BOOL Open( LPCTSTR lpszURL, CFileException* pError = NULL );
BOOL Open( IMoniker* pMoniker, CFileException* pError = NULL );
Return Value
Nonzero if successful; otherwise 0.
Parameters
lpszURL
A URL or filename of the file to be opened.
pError
A pointer to a file exception. In the event of an error, it will be set to the cause.
pMoniker
A pointer to the moniker interface IMoniker to be used to obtain a stream.
Remarks
Call this member function to open a file or moniker object.
The lpszURL parameter cannot be used on a Macintosh. Only the pMoniker form of Open can be used on a Macintosh.
You can use a URL or a filename for the lpszURL parameter. For example:
CMyMonFile mymonf;
mymonf.Open(_T("http://www.microsoft.com"));
– or –
CMyMonFile mymonf;
mymonf.Open(_T("file:c:\mydata.dat"));
CMonikerFile Overview | Class Members | Hierarchy Chart
See Also CMonikerFile::CMonikerFile, CAsyncMonikerFile::Open