Page 1 of 1

Why bad my API-CALL ?

Posted: Fri Dec 26, 2008 10:12 am
by PaPi


My question: what is bad here? There isn`t 440 Hz whistle with my test-program:

`ApiCall_test by PaPi
`
Declare whistle as "Beep" of "kernel32" as long
dim dwFreq As Long
dim dWDuration As Long
end declare

whistle.dwFreq=440
whistle.dwDuration=1000
whistle

`end of my program

thanks PaPi

Why bad my API-CALL ?

Posted: Fri Dec 26, 2008 4:13 pm
by Marco
hi, i think it must look like this

Declare whistle as "Beep" of "kernel32"
dwFreq As Long
dWDuration As Long
result as long
end declare

best regards