Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-23
2
Medium Priority
?
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

688 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