All Forums
 Microsoft Windows CE
 CE Audio and Multimedia
 Path to Storage Card
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

vta

14 Posts

Posted - 21 May 2004 :  10:27:43  Show Profile  Email Poster
I need to play wav files, programmatically, from our Storage Card folder (instead of Windows folder). Does anyone know how to show the path for that? Here's the code, but when it runs, it goes and gets the default sound in the Windows folder.

sndPlaySound ((LPWSTR)_T("intro.wav"), SND_SYNC);

this path doesn't work:

sndPlaySound ((LPWSTR)_T("..\\..\\Storage Card\\intro.wav"), SND_SYNC);

thanks

Susan

123 Posts

Posted - 21 May 2004 :  10:32:23  Show Profile  Email Poster
Try "\\Storage Card\\FileName.TXT"
Go to Top of Page

vta

14 Posts

Posted - 21 May 2004 :  10:51:55  Show Profile  Email Poster
That worked. Thank You Susan. (I thought I had tried that path.)
Go to Top of Page

ctacke

877 Posts

Posted - 21 May 2004 :  10:52:11  Show Profile  Email Poster
Windows CE has no concept of a "Current Directory" and therefore relative paths also are meaningless. As Susan points out, you must always use fully qualified paths.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000