Rob, those values are not strings, they are integer constants.  For example,
DS_OK is zero.  You can find the values documented on the web.  One such
site is here:

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c_
Summer_04/directx/htm/directsoundreturnvaluesbynumber.asp

I'm sure there are other sources for this information.

Tim

A short list would be

const DS_OK = 0
const DSERR_ALLOCATED = &x8878000A
const DSERR_INVALIDPARAM = &x80070057
const DSERR_NOAGGREGATION = ???
const DSERR_NODRIVER = &x88780078
const DSERR_OUTOFMEMORY = &x00000007


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Robert
> Carroll
> Sent: Tuesday, November 14, 2006 6:22 PM
> To: [email protected]
> Subject: HResult to string value?
>
>
> 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?
>
> thanks
>
> Rob
>
> _______________________________________________
> 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>

Reply via email to