How to display DirectSound Return Values in a Message Box
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to display DirectSound Return Values in a Message Box

  1. #1
    Join Date
    Feb 2013
    Location
    Richmond, VA
    Posts
    3

    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.

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,835

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center