Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC Apps + Size

Status
Not open for further replies.

zoomby

Programmer
Aug 5, 2002
60
DE
hi,

Does someone know why MFC apps (.exe) are bigger in size then simliar visual basic apps?
And with the MFC apps I need the mfc dlls to run it on other systems. Why?

bye
Chris
 
1. No; the MFC exes are not necessarily bigger. In fact they can be made 'lean and mean'. You have to read up on compiler options (can be found with a search on MSDN)

2. You have to distribute runtime files alongwith your apps (msvcrt*.dlls). This can also be made optional by inserting necessary code in the exe itself automatically. Again you have to look up the compiler options (shared dlls section).

Incidentally, apps developed in VB also require their own set of dlls also.

come back if you cant find the material.

goodluck!

/Srikanth In the sweat of thy brow shall you eat your bread.
-Bible

 
hi,

thanks, the compiler issue is very complex, can you give me some tips how to make small exe files, befor I start to read everything?

I compiled a simple dialog app with static dll(to run on other systems) with "small code" optimization. But the app is still 900kb big! (I made a simple dialog app in visual basic, and its 24kb small, and runs on other systems)
So what's the trick? How can this be?

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top