Partilhar via


CDataPathProperty::CDataPathProperty

Constructs a CDataPathProperty object.

CDataPathProperty(
   COleControl* pControl = NULL
);
CDataPathProperty(
   LPCTSTR lpszPath,
   COleControl* pControl = NULL
);

Parameters

  • pControl
    A pointer to the OLE control object to be associated with this CDataPathProperty object.

  • lpszPath
    The path, which may be absolute or relative, used to create an asynchronous moniker that references the actual absolute location of the property. CDataPathProperty uses URLs, not filenames. If you want a CDataPathProperty object for a file, prepend file:// to the path.

Remarks

The COleControl object pointed to by pControl is used by Open and retrieved by derived classes. If pControl is NULL, the control used with Open should be set with SetControl. If lpszPath is NULL, you can pass in the path through Open or set it with SetPath.

Requirements

Header: afxctl.h

See Also

Reference

CDataPathProperty Class

Hierarchy Chart

CDataPathProperty::Open

CDataPathProperty::SetControl

Other Resources

CDataPathProperty Members