Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

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

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
mccainz2
Asked:
mccainz2
  • 2
1 Solution
 
vinnyd79Commented:
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
 
vinnyd79Commented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now