473,378 Members | 1,309 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,378 software developers and data experts.

not include images/sounds into a compiled .resource or .dll

Art
hi,

i got a big project with a bunch of images and sounds. i organized
them into several resources, which get compiled into a .dll. but there
is a sound-file i want to be able to change after installation. is
there a way to not to include this file (which is included in one of
the resources) into the .dll?

i know i can add the file to the project and open the file and get a
stream, etc ... but i want to have it in the resources (for unified
resource-access), but not compiled into the .dll.

i messed around with the persistence-property. when i switch it to
"linked at compile time" it does nothing different (to my concern)
than when set to "included to .resx".

also the "build action" property of the sound file itself does not
effect the output in any way!

so what are all these options for, and anyone has any suggestions on
this issue?

thanks in advance,
arthur
Sep 3 '08 #1
1 1618
On Sep 3, 4:37*am, Art <a...@gmx.infowrote:
hi,

i got a big project with a bunch of images and sounds. i organized
them into several resources, which get compiled into a .dll. but there
is a sound-file i want to be able to change after installation. is
there a way to not to include this file (which is included in one of
the resources) into the .dll?

i know i can add the file to the project and open the file and get a
stream, etc ... but i want to have it in the resources (for unified
resource-access), but not compiled into the .dll.
You can have unified resource access even with the resouce in the
filesystem. you can do something like

MyResource resourceTofind=GetResourceFromDll( resourceName);
if ( recourceToFind == null )
{
resourceTofind = GetResourceFromFileSystem( resourceName);
if ( resourceTofind == null )
throw new Exception(......
}

MyResource GetResourceFromFileSystem( string resourceName){
if ( !File.Exist( Assembly.GetExecutingAssemblu().Location + "\\" +
resourceName) )
return null
}
Sep 3 '08 #2

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

Similar topics

1
by: MacDermott | last post by:
I'm writing an application where I need to store a small amount of xml data in a relatively secure way - I don't want it just sitting out there in a separate file; I'd rather have it compiled into...
5
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
1
by: Bilal Farooq via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Bilal Farooq Hi, I have following requirements to achieve: I have some images andI am adding them as a resource to a dll....
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
2
by: Brian A. Cline | last post by:
After placing several images in an embedded resource file, the size of my program's executable has jumped considerably. I don't need these images until a specific dialog pops up, and it's possible...
16
by: Chris Shearer Cooper | last post by:
In our Visual Studio 2005 application, we have several of our application's H files that are #included into stdafx.h. What is odd, is that when we change those application H files, VS2005...
1
by: shapper | last post by:
Hello, I am working on a web control library. How can I include my CSS Files and images in the DLL library? I would like to be able to move only the DLL file to the web site Bin Folder and...
6
by: star-italia | last post by:
Hi, Is it possible to include a XAML file into another XAML file? For example If i have - Window1.xaml - Window2.xaml and both have a treeview with a custom Style, can i describe the style...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.