Win32 API Question

Results 1 to 2 of 2

Thread: Win32 API Question

  1. #1
    Join Date
    Dec 1969

    Default Win32 API Question

    I am learning how to use the Win32 API through VB 6.0. I have a simple app which calls sndPlaySound Lib "winmm.dll" to play a windows .wav file on my local machine. I have put this into a class file and am accessing it through a .asp file calling a function in the class and passing it the file path from a form as a string and setting the uFlag to SND_SYNC. The problem I am having is that the API function will work once and execute the .wav sound but then if go back and try it again it does nothing and returns false. Even if I close down the browser and start a new session it stills returns false until I use the refresh button on the browser to resubmit the form. Does anyone have any good ideas? <BR><BR>Rick

  2. #2
    Join Date
    Dec 1969

    Default RE: Win32 API Question

    Thats how you should call the function, via a form submission.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts