X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b953bdc2934895fa31d859be25be1f850701c2c3..0a240683ed2ed0ad7efe733d451dd36740607605:/docs/html/faqmsw.htm diff --git a/docs/html/faqmsw.htm b/docs/html/faqmsw.htm index 061c2a9c89..2f600a7cf6 100644 --- a/docs/html/faqmsw.htm +++ b/docs/html/faqmsw.htm @@ -111,7 +111,7 @@ for the port to Windows CE (see above).

Can you compile wxWindows 2 as a DLL?

-Yes (using the Visual C++ makefile), but be aware that distributing DLLs is a thorny issue +Yes (using the Visual C++ or Borland C++ makefile), but be aware that distributing DLLs is a thorny issue and you may be better off compiling statically-linked applications, unless you're delivering a suite of separate programs, or you're compiling a lot of wxWindows applications and have limited hard disk space.

@@ -122,6 +122,23 @@ negating the point of using DLLs. Of course, this is not a problem just associat wxWindows!

+

How can I reduce executable size?

+ +You can compile wxWindows as a DLL (see above, VC++/BC++ only at present). You should also +compile your programs for release using non-debugging and space-optimisation options.

+ +Statically-linked wxWindows 2 programs are smaller than wxWindows 1.xx programs, because of the way +wxWindows 2 has been designed to reduce dependencies between classes, and other +techniques. The linker will not include code from the library that is not (directly or +indirectly) referenced +by your application. So for example, the 'minimal' sample is less than 300KB using VC++ 6.

+ +If you want to distribute really small executables, you can +use Petite +by Ian Luck. This nifty utility compresses Windows executables by around 50%, so your 500KB executable +will shrink to a mere 250KB. With this sort of size, there is reduced incentive to +use DLLs.

+

Will wxWindows be compatible with MFC?