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.
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.