On Nov 14, 2006, at 9:21 PM, Robert Carroll wrote:
Hi,
Does anyone on the list know how to obtain the string value of an
HResult from a windows function declare?
I'm trying to get some simple directsound/directX functions to
work. MSDN gives the possible return vales as:
If the function succeeds, the return value is DS_OK.
If the function fails, the return value may be one of the following
error values:
DSERR_ALLOCATED
DSERR_INVALIDPARAM
DSERR_NOAGGREGATION
DSERR_NODRIVER
DSERR_OUTOFMEMORY
Supposedly HResult is a 32 bit value so I'm storing the result as
an integer in RB. Is there a way to map the integer to the correct
result string?
This <http://blogs.msdn.com/heaths/archive/2005/07/21/441391.aspx>
should get you started.
Charles Yeomans
_______________________________________________
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>