🎉 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

Started by
4 comments, last by mickey 22 years, 7 months ago
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!
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
Advertisement
There is a predefined variable called Command that should contain the name of your file.
In my thunking device, what happens to the inherited pointer to the original base class when I override the function & how do I access it in my inline assembly code, assuming that we are referencing the higher byte of the 16-bit variable?
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
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
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..
-VBLimitsSorry 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.
Trying is the first step towards failure.
ah okey, thanks guys! Are all programs like these? you really have to program in the registers so that when when I click open->with, my program will appear there?
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,

This topic is closed to new replies.

Advertisement