473,320 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

where to store sound file

Hi, All,
The app retrieve sound.wav file from my loacal C drive, is there anyway the
sound file can be stored in the app? then when building, it goes with app
rather than sending sound file seperate with app when deploying the app.
Thanks
Jul 21 '06 #1
6 2406
"martin1" <ma*****@discussions.microsoft.comschrieb:
The app retrieve sound.wav file from my loacal C drive, is there anyway
the
sound file can be stored in the app? then when building, it goes with app
rather than sending sound file seperate with app when deploying the app.
In VB 2005 select "My Project" -"Resources" and add the file as a
resource. In VB.NET 2002/2003 add the file to the project and set its
'Build Action' property to 'Embedded Resource' in the properties window.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 21 '06 #2
when I go to solution explorer in VB NET 2005, then double click My Project,
it open and then click Resources in left menu and add resource, it add just
source name, it is not stored sound.wav file. Also go to application folder
in C drive and open My Project folder and cannot find Resources folder, need
manually add the resources folder? So my 2 questions is where to find
Resources Folder? and where to store sound file? Thanks

"Herfried K. Wagner [MVP]" wrote:
"martin1" <ma*****@discussions.microsoft.comschrieb:
The app retrieve sound.wav file from my loacal C drive, is there anyway
the
sound file can be stored in the app? then when building, it goes with app
rather than sending sound file seperate with app when deploying the app.

In VB 2005 select "My Project" -"Resources" and add the file as a
resource. In VB.NET 2002/2003 add the file to the project and set its
'Build Action' property to 'Embedded Resource' in the properties window.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 21 '06 #3
"martin1" <ma*****@discussions.microsoft.comschrieb:
when I go to solution explorer in VB NET 2005, then double click My
Project,
it open and then click Resources in left menu and add resource, it add
just
source name, it is not stored sound.wav file. Also go to application
folder
in C drive and open My Project folder and cannot find Resources folder,
need
manually add the resources folder?
IIRC the resource is stored inside a ResX file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 21 '06 #4
Herfried K. Wagner [MVP] wrote:
In VB 2005 select "My Project" -"Resources" and add the file as a
resource. In VB.NET 2002/2003 add the file to the project and set its
'Build Action' property to 'Embedded Resource' in the properties
window.
Just out of curiosity, are there any advantages to the VB2005 method you've
described above?

I'm using VB2005, but I still embed resources in the same way as you
describe for VB2002/2003. This works very nicely IMO, as I can structure the
resources into a directory hierarchy, check them in and out of SourceSafe
from within the Solution Explorer, and also include resources such as To Do
lists that I want to be able to access but which don't get compiled into my
project (by setting the Build Action to None).

It seems to me that the "new" way of doing this would lose all of these
features. Is there something else that I'm missing?

TIA,

--

(O)enone
Jul 22 '06 #5
In the by you described situation

it seems to me that you should better create a subdirectory in the
application path were you can put in the sound file
for deployment you can now create a setup ( installer )

advantage

Footprint of your app is smaller , easy to load , easier to extend
regards

Michel Posseth [MCP]
"martin1" <ma*****@discussions.microsoft.comschreef in bericht
news:97**********************************@microsof t.com...
Hi, All,
The app retrieve sound.wav file from my loacal C drive, is there anyway
the
sound file can be stored in the app? then when building, it goes with app
rather than sending sound file seperate with app when deploying the app.
Thanks

Jul 22 '06 #6
Thank you, Everyone.

The discussion answer my question.

Martin

"Michel Posseth [MCP]" wrote:
In the by you described situation

it seems to me that you should better create a subdirectory in the
application path were you can put in the sound file
for deployment you can now create a setup ( installer )

advantage

Footprint of your app is smaller , easy to load , easier to extend
regards

Michel Posseth [MCP]
"martin1" <ma*****@discussions.microsoft.comschreef in bericht
news:97**********************************@microsof t.com...
Hi, All,
The app retrieve sound.wav file from my loacal C drive, is there anyway
the
sound file can be stored in the app? then when building, it goes with app
rather than sending sound file seperate with app when deploying the app.
Thanks


Jul 24 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marco Krechting | last post by:
Hi All, I have a database with the timer function set to warn the user that arecord is due to expire. Is there a Win API that I can use so a loud warning will go off. Not this simpel beep in...
2
by: Sathyaish | last post by:
I am using MCI (winmm.dll) to read, record and playback sound. For now, I am doing this with disk files instead of realtime doing it straight from the memory. If I want to stream/relay/transmit...
4
by: Robert Gravereaux | last post by:
I'm putting together a C# .Net forms project on win2k. The application requires some sort of horn sound. I've never implemented any audio in .Net, so I'm not sure how best to accomplish this. ...
1
by: Lam | last post by:
how can I play sound file in a .aspx page written in C#? I try to use the code like the following. But whenI call the play function play("sound.wav", this.SND_ASYNC) my computer give out "be"...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
19
by: Lisa Jones | last post by:
Hi I don’t want to change my name or anything :) but I wish I was able to save Sound into SQL server and retrieve it So my question is How do you save a wav file into a SQL server and how do...
1
by: rdemyan via AccessMonster.com | last post by:
I'm trying to implement a licensing scheme. There are three types of licenses: Trial - good for 30 to 60 days Interim - good for 1 year Fully Paid - no expiration Everything is working fine...
10
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version....
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.