Solved

I'm using a Resource file yet it is bloating my EXE

Posted on 2003-10-23
2
159 Views
Last Modified: 2010-05-03
I recently added background graphics to my forms via a resource file. The res file is approx 5mb and in return my exe has bloated by approx the same amount. WTF is going on. I also tested the exe by removing it to a folder where it had no access to the res file....It still loaded with the correct graphics...So, am I to understand that the res file graphics are loaded into the binary at build-time ? If so then WTF is the point of having a resource file????
0
Comment
Question by:mccainz2
  • 2
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 125 total points
ID: 9608976
When you compile your exe the contents of the resource file are stored in your exe.That is the purpose of using a resource file.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9609015
When you add graphics to your program a .frx file is created for each form that has the graphics.When you compile, the graphics will be added to your exe.A resource file can be used to store strings,graphics or binary data to be extracted from your exe at runtime.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question