Solved

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

Posted on 2003-10-23
2
154 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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now