PlanetSquires Forums

Support Forums => WinFBE - Code Editor and Visual Designer => Topic started by: veltesian on July 30, 2020, 11:15:41 PM

Title: question about playing a sound?
Post by: veltesian on July 30, 2020, 11:15:41 PM
hello everyone...

i would like to know how can this 1 included *.bas could be fixed if possible? i had
ideas on building a simple SND player device if its ever possible. i might need to look
further perhaps as the code within the form of the included *.bas may not be right.
when i try to compile it for runtime,... the compiler seems to not like the declare function
& the "playsound" seems like an undefined variable. i'm not sure where to go from here.

(.... sigh) i guess i have a lot to learn about windows API or how to arrange such things.
Title: Re: question about playing a sound?
Post by: jermy on July 31, 2020, 07:32:53 AM
I think you used visual basic 6 in the past?
if so then you have some specific explanation in the project about the differences
Title: Re: question about playing a sound?
Post by: veltesian on July 31, 2020, 07:50:04 AM
hello jermy...

i just downloaded your playsound.zip and tried it. thanks it works great & yes i had
worked in vb6 (before .NET framework)... though i guess my zip upload was probably no good
to begin with. thats ok.... so i am sorry if it greatly disappoints anyone who might download it.
Title: Re: question about playing a sound?
Post by: jermy on August 01, 2020, 12:41:30 PM
before I started freebasic I programmed a lot in vb6.
I have often used old vb6 code as it often works with minor changes.
On the way you learn the differences faster