Share via


IMLQuery::Prepare (Compact 7)

3/12/2014

This method prepares the IMLQuery object for use.

Syntax

HRESULT Prepare(
);

Parameters

None.

Return Values

Returns the HRESULT values shown in the following table.

Return code Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Remarks

The IMLQuery object must be prepared before it can be used in calls to IMLCore methods. After you build the query string, you call this method to allocate memory internally for the results set. To retrieve the query results, call IMLCore::RunQuery.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLQuery