Re: visual studio resource file?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: richlm (rich_lm_at_h0tmai1.com)
Date: 08/03/04


Date: Tue, 3 Aug 2004 21:16:24 +0200

There are several questions here:

1. image file into project: In solution explorer, add the file to the
project (right-click the project, select Add+Add-existing item etc.). Then
select the file and in the properties window set Build Action to "Embedded
Resource". You can then access the file in code using e.g
System.Reflection.GetManifestResourceStream.

2. Exe compiled into bin/debug.VS is pre-configured with appropriate
configuration options for release and debug. If you want to change the
location for a specific configuration (or all) go into project properties,
find "Configuration properties" and "Build". You can modify "Output Path".
Alternatively yur could specify a post-build event (under "common
properties" "build events" to copy the target.

3. When you add an existing item to the solution, VS copies it into the
project folder unless it is there already (or is a subfolder that has been
added). From that point VS refers to the local copy.

"Alan Zhong" <alanchinese@yahoo.com> wrote in message
news:b09c98a8.0408030905.602173e6@posting.google.com...
> hi, when you add a image file into the project, how do you "link" this
> file with the exe file? i notice the exe is compiled into bin\debug\,
> is it possible to compile and produce the exe file inside the project
> directory?
> how about adding an existing item to the solution? how do the projects
> access the solution items?
> thankx a lot.
> from alan.



Relevant Pages

  • Re: How to turn off compiler/linker timestamping?
    ... > You can see the time stamp by running dumpbin /all on the executable. ... > "Michael Schwab" wrote in message ... compile. ... >> embedded in the exe file itself. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)
    ... After unpacking the .zip file and adding the paths to the root of the ... A minimal test setup to compile 'hello, ... (-s reduces the size of the .exe file, ...
    (comp.lang.fortran)
  • Re: VB 6 & VS?
    ... do I now make an .exe file with VB6? ... The registry problem may be a permissions issue, ... To compile, open Options and select the Compile tab. ... But first I suggest you do a "Run with full compile" within the IDE to ...
    (microsoft.public.vb.general.discussion)
  • Re: trivial question about building exe
    ... references to external dlls. ... exe file, so that I can send it to another machine and it works. ... If I understand you correctly you want to compile all dlls to one file. ... This is not the way you should use dynamic libraries but if you are sure you know what you are doeing you can theoretically add all the libraries to the resources of your application and get them from the resources and save them to disc before your application will use them. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB IDE Crashes during Compile/Make
    ... I also have one app that won't compile on the dev machine but will ... compile on another machine accessing the project files across the ... >Although I'm running XP and VS6, we have tried to make the exe file on ...
    (microsoft.public.vb.general.discussion)