-
February 8th, 2013, 03:03 PM
#1
How to display DirectSound Return Values in a Message Box
I have tried statements like:
Buffers.Add DSBuffer, strKey
MsgBox "Return code for Buffers.Add: " & Err.Description
However, these statements never return anything but a blank for Err.Description.
I would like to see values such as DS_OK, etc.
I am using DirectX8 and vb6.
Thank you in advance.
-
February 9th, 2013, 12:48 AM
#2
Re: How to display DirectSound Return Values in a Message Box
Well 2 things
1: There should not be an error description to display unless of course an error occurred.
2: The values returned would most likely be numeric so you would have to figured out the number for DS_OK and check the return against the possible return values and then display the text you want for each result.
I have not used Direct X so I am not familiar with the return codes or how they are returned. It would be in a variable that you would provide but it could be one that would go on the left side of the call using an = assignment or it could be one of the parameters you would pass.
Always use [code][/code] tags when posting code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|