🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
vb help
hi! i have a .wav file and i want to run it independently, not using any media player, like when you click it it''ll play automatically, i already know how to load/play a wav file, my problem is i don''t know how to load the wav file once i clicked on it. ie, open with...then my program then nothing happens! how do i do that? thanks!
hello shalom, i''m sorry i didn''t get you there, i''m trying to load any wav files by using my program just by clicking on it, what is Command? is that a windows api? or is it contained within that wav file? thanks
Command() is a function that will return any string that is passed to windows after the porgram name
eg "myapp.exe command vars"
x = Command()
x = "command vars"
now in order to have your app open wav files by haveing windows open it is a litile harder
you ll need to do some regediting
but i cant help you there
i know what you need to do
but i dont remember how
but i do know when you have that working you double click a wav file and windows will call your app and send it the file name in the command string
and you load it and play it
not to hard, but i really cant rememmber how to do it
i ll look and see if i can find it and if i can i ll post it up here
hope that helps a bit
-VBLimits
Sorry about the Spelling..
eg "myapp.exe command vars"
x = Command()
x = "command vars"
now in order to have your app open wav files by haveing windows open it is a litile harder
you ll need to do some regediting
but i cant help you there
i know what you need to do
but i dont remember how
but i do know when you have that working you double click a wav file and windows will call your app and send it the file name in the command string
and you load it and play it
not to hard, but i really cant rememmber how to do it
i ll look and see if i can find it and if i can i ll post it up here
hope that helps a bit
-VBLimits
Sorry about the Spelling..
Use Command$ instead of Command, Command will return a variant and require an extra conversion to a string.
I can''t remember what the keys/api calls were for file type associations, but I bet if you did a search at www.planet-source-code.com you would find something that did it.
Trying is the first step towards failure.
I can''t remember what the keys/api calls were for file type associations, but I bet if you did a search at www.planet-source-code.com you would find something that did it.
Trying is the first step towards failure.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement