Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

Cannot get audio resource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yato - 18 Apr 2006 09:53 GMT
Hello,
  I am developing PocketPC application in VS2005.
I defined audio resource BeepSound using project properties. When I want to
get resource using MyApp.Properties.Resources.BeepSound in C#, the byte array
is returned, it has the correct length, but contains only binary zeros
instead of the sound.
 Sound is played correctly from resource editor in VS, and regardless of
the Persistence property, the I can see the sound correctly included in the
resulting executable.
I can succesfully get BMP images this way in PPC application.
I also tried to do similar thing in full Windows Application, and it works
correctly, but there I am getting audio resource as UnmanagedMemoryStream
instead of byte[] as in Compact Framework project.

The ResXFileCodeGenerator tool generates this access method:
       internal static byte[] BeepSound {
           get {
               object obj = ResourceManager.GetObject("BeepSound",
resourceCulture);
               return ((byte[])(obj));
           }
       }
, but object retrieved contains all zeroes, though length seems correct.
What is wrong? Bug in ResourceManager? Or am I doing something wrong.

Thank you
 Yato
Yato - 26 Apr 2006 08:40 GMT
No one getting the same problem? Nobody knows the reason?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.