This is hopefully a very basic one. I rate my programming skills as a C-. :-)
Anyways, i just modified an indicator to use PlaySound to alert me when such-and-such happens. Works awesome if i do: PlaySound(@"C:\Sounds\long.wav") - however i'd like to make an input in the indicator so that i can change the file name and path for the sound (rather than have it hardcoded).
I seem to be having problems with this. Here's what i tried...
Instead of using PlaySound(@"c:\sounds\long.wav");
I used PlaySound(@longWavFile);
In #region Properties section i put:
[Description("Long Sound input file")]
[Category("Parameters")]
public string longWavFile
{
get { return longWavFile; }
set { longWavFile = value; }
}
When i compile this it gives me a warning that i've done something so tragically wrong, that it will crash ninja! Ha! Yeah, right!
Oh wait, when i put the compiled indicator onto a chart, it actually does crash ninja!
Is it a simple solution?
Thanks!
Orange.
Comment