VXPLib Documentation: COM

IVXPQuickHTML::AddFilePath

Adds a search path to the list of accessible directories. Whenever a file is specified within QHTML contents, if such file is not found in the current directory the search will continue through all the directories added by this method.

HRESULT AddFilePath(BSTR FilePath, short * counter);

Parameters

FilePath [in] - New search path to be added to the list.
counter [out, retval] - Address of variable to recieve the number of paths added totally.
Remarks

When a client process creates a new instance of IVXPQuickHTML the component retrives full path to the client's executable, extracts the file path, and adds it to the list using AddFilePath. That way if the current directory changes for the client process, files from the original directory still will be accessible. Additionally, directory where file VXPLib.dll resides is also added to the list of directories.

Note: Do not add directories allocated on temporary data storage devices, as removal of such devices during lifetime of the interface instance may freeze IVXPQuickHTML in awaiting the device access when method RecalculateLayout is called, and cause unstable work of the client application.
See Also

IVXPQuickHTML Overview


This document was last updated on 15/05/2003
Copyright © 2003 Tooltips.NET