(If I got it into a Variant it would probably be even better.)
I'm a bit clueless about what the data type should be. I've already
tried a declare that returns a CString or a PString without luck.
I'd be happy if I got as far as putting it in a binary RB string.
Here's the function itself I need to interpret the result from:
MDQueryGetAttributeValueOfResultAtIndex
Returns the value of the named attribute for the result at the given index.
void *MDQueryGetAttributeValueOfResultAtIndex (
MDQueryRef query,
CFStringRef name,
CFIndex idx
);
Parameter Descriptions
query
The query.
name
The attribute name to return the values of. If the attribute is not
one of those requested in the valueListAttrs or sortingAttrs
parameters to one of the query creation functions, the result will
be NULL.
idx
The index into the query's result list. If the index is negative or
is equal to or larger than the current number of results in the
query, the behavior is undefined.
function result
The value of the attribute, or NULL if the attribute doesn't exist
for the specidied result.
On Jan 26, 2007, at 1:43 PM, Aliacta wrote:
I'm receiving a ptr (AFAIK) from a declare and I'd like to put its
value into a string.
Is it a pointer to a C string? If so, you can simply declare it as
CString, then assign the value to a regular string variable and let
the implicit conversion do its work.
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>