silvanr Posted November 10, 2004 Posted November 10, 2004 I can't use this Function$vol = DllCall("Winmm", "int", "waveOutGetVolume", "long", 0)What is the param?Where is the mistake?Infos: http://www.mentalis.org/apilist/waveOutGetVolume.shtmlThanks for Help.Greetz Sorry, which my English is so bad. I come from Switzerland ;-)
Mr.Wizard Posted November 10, 2004 Posted November 10, 2004 According to the page you gave the URL to, that API call takes two parameters and in your example code you've only given it one... I have a catapult. Give me all the money or I will fling an enormous rock at your head.
silvanr Posted November 10, 2004 Author Posted November 10, 2004 I don't understand This. Sorry. Can you give me an example please? Thanks Sorry, which my English is so bad. I come from Switzerland ;-)
Mr.Wizard Posted November 10, 2004 Posted November 10, 2004 It would be something like $err = DllCall("Winmm", "int", "waveOutGetVolume", "int", 0, "long", $vol) but I've just tried it and it doesn't seem to work... Does anyone else know whether you can pass values by reference to dlls using dllcall? Cos that's what would need to happen for this particular API call to work... I have a catapult. Give me all the money or I will fling an enormous rock at your head.
silvanr Posted November 10, 2004 Author Posted November 10, 2004 $err = DllCall("Winmm", "int", "waveOutGetVolume", "int", 0, "long", $vol) Return: $vol = "" ;empty string :-( $err[0] = 11 $err[1] = 0 $err[2] = 0 But I would for $vol a value (0 - 100) Sorry, which my English is so bad. I come from Switzerland ;-)
silvanr Posted November 22, 2004 Author Posted November 22, 2004 No ideas? Sorry, which my English is so bad. I come from Switzerland ;-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now