S
Serdge Kooleman
hi
i'm trying to play sounds in my windows app.
wav files are in the same folder as .exe
if i'm getting path by command:
ApplicationPath = Application.StartupPath;
and it is look like
@"C:\Documents and Settings\Sergiy\My Documents\Visual Studio
Projects\SE\bin\Debug\SoundWrong.wav"
so my sounds not playing!
when i manually typed path: "C:\\Doc\\mysound.wav" it is started to work.
how to convert path with @ to the string with double \\?
to play sound i use function:
[DllImport("winmm.dll")]
private static extern bool PlaySound( string lpszName, int hModule, int
dwFlags );
thank you
i'm trying to play sounds in my windows app.
wav files are in the same folder as .exe
if i'm getting path by command:
ApplicationPath = Application.StartupPath;
and it is look like
@"C:\Documents and Settings\Sergiy\My Documents\Visual Studio
Projects\SE\bin\Debug\SoundWrong.wav"
so my sounds not playing!
when i manually typed path: "C:\\Doc\\mysound.wav" it is started to work.
how to convert path with @ to the string with double \\?
to play sound i use function:
[DllImport("winmm.dll")]
private static extern bool PlaySound( string lpszName, int hModule, int
dwFlags );
thank you