Share via


CCachedDataPathProperty Class

Implements an OLE control property transferred asynchronously and cached in a memory file.

class CCachedDataPathProperty : public CDataPathProperty

Remarks

A memory file is stored in RAM rather than on disk and is useful for fast temporary transfers.

Along with CAysncMonikerFile and CDataPathProperty, CCachedDataPathProperty provides functionality for the use of asynchronous monikers in OLE controls. With CCachedDataPathProperty objects, you are able to transfer data asynchronously from a URL or file source and store it in a memory file via the m_Cache public variable. All the data is stored in the memory file, and there is no need to override OnDataAvailable unless you want to watch for notifications and respond. For example, if you are transferring a large .GIF file and want to notify your control that more data has arrived and it should redraw itself, override OnDataAvailable to make the notification.

The class CCachedDataPathProperty is derived from CDataPathProperty.

For more information about how to use asynchronous monikers and ActiveX controls in Internet applications, see the following topics:

Requirements

Header: afxctl.h

See Also

Reference

CDataPathProperty Class

Hierarchy Chart

CDataPathProperty Class

Other Resources

CCachedDataPathProperty Members