X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..54759554d3d4975ef543d308d6da6cd40ca9c87b:/docs/html/faqmsw.htm?ds=inline diff --git a/docs/html/faqmsw.htm b/docs/html/faqmsw.htm index 346e9de28d..cfe6e89be3 100644 --- a/docs/html/faqmsw.htm +++ b/docs/html/faqmsw.htm @@ -35,6 +35,7 @@ See also top-level FAQ page.
  • Can you compile wxWindows 2 as a DLL?
  • How can I reduce executable size?
  • Is wxWindows compatible with MFC?
  • +
  • Why do I get errors about setup.h not being found?
  • Why do I get errors about FooBarA when I only use FooBar in my program?
  • Why my code fails to compile with strange errors about new operator?
  • How do I port MFC applications to wxWindows?
  • @@ -43,6 +44,7 @@ See also top-level FAQ page.
  • How do you use VC++'s memory leak checking instead of that in wxWindows?
  • Why are menu hotkeys or shortcuts not working in my application?
  • Why can I not write to the HKLM part of the registry with wxRegConfig?
  • +
  • Is MS Active Accessibility supported?

  • @@ -62,14 +64,13 @@ makefiles to see what other files have been left out. 16-bit compilation is supported under Visual C++ 1.5, and Borland BC++ 4 to 5.

    -wxWindows 2 for Windows will also compile on Unix with gcc using TWIN32 from Willows, -although TWIN32 is still in a preliminary state. The resulting executables are -Unix binaries that work with the TWIN32 Windows API emulator.

    +wxWindows 2 for Windows will also compile on Unix with gcc using Wine from WineHQ. +The resulting executables are Unix binaries that work with the Wine Windows API emulator.

    You can also compile wxWindows 2 for Windows on Unix with Cygwin or Mingw32, resulting in executables that will run on Windows. So in theory you could write your applications using wxGTK or wxMotif, then check/debug your wxWindows for Windows -programs with TWIN32, and finally produce an ix86 Windows executable using Cygwin/Mingw32, +programs with Wine, and finally produce an ix86 Windows executable using Cygwin/Mingw32, without ever needing a copy of Microsoft Windows. See the Technical Note on the Web site detailing cross-compilation.

    What about Windows CE?

    @@ -113,6 +114,23 @@ the following: </assembly> +If you want to add it to your application permanently, +you can also include it in your .rc file using this +line:

    + +

    +  1 24 "winxp.manifest"
    +
    + +In wxWindows 2.5, this will be in the wx/msw/wx.rc and +so will happen automatically so long as you include wx.rc +in your own .rc file.

    + +For an explanation of this syntax, please see +this +article. +

    +

    What compilers are supported?

    Please see the wxWindows 2 for Windows install.txt file for up-to-date information, but @@ -198,25 +216,26 @@ You can compile wxWindows as a DLL (see above, VC++/BC++ only at present). You s compile your programs for release using non-debugging and space-optimisation options, but take with VC++ 5/6 space optimisation: it can sometimes cause problems.

    -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 500KB using VC++ 6 -(note that this figure may be greater for the latest version of wxWindows).

    - 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. Another good compression tool is UPX. +use DLLs. Another good compression tool (probably better than Petite) is UPX.

    Please do not be surprised if MinGW produces a statically-linked minimal executable of 1 MB. Firstly, gcc produces larger executables than some compilers. Secondly, this figure will include most of the overhead of wxWindows, so as your application becomes more -complex, the overhead becomes proportionaly less significant. And thirdly, trading executable compactness -for the enormous increase in productivity you get with wxWindows is almost always well worth it. +complex, the overhead becomes proportionally less significant. And thirdly, trading executable compactness +for the enormous increase in productivity you get with wxWindows is almost always well worth it.

    + +If you have a really large executable compiled with MinGW (for example 20MB) then +you need to configure wxWindows to compile without debugging information: see +docs/msw/install.txt for details. You may find that using configure instead +of makefile.g95 is easier, particularly since you can maintain debug and +release versions of the library simultaneously, in different directories. +Also, run 'strip' after linking to remove all traces of debug info. +

    Is wxWindows compatible with MFC?

    @@ -224,6 +243,21 @@ There is a sample which demonstrates MFC and wxWindows code co-existing in the s application. However, don't expect to be able to enable wxWindows windows with OLE-2 functionality using MFC.

    +

    Why do I get errors about setup.h not being found?

    + +When you build the wxWindows library, setup.h is copied +from include/wx/msw/setup.h to e.g. lib/mswd/wx/setup.h (the path +depends on the configuration you're building). So you need to add +this include path if building using the static Debug library:

    + +lib/mswd

    + +or if building the static Release library, lib/msw.

    + +See also the wxWiki Contents +for more information.

    + +

    Why do I get errors about FooBarA when I only use FooBar in my program?

    If you get errors like @@ -262,7 +296,8 @@ the VC++ CRT memory debugging features instead.

    How do I port MFC applications to wxWindows?

    -Set up your interface from scratch using wxWindows (especially wxDesigner -- +Set up your interface from scratch using wxWindows (especially wxDesigner +or DialogBlocks -- it'll save you a lot of time) and when you have a shell prepared, you can start 'pouring in' code from the MFC app, with appropriate modifications. This is the approach I have used, and I found @@ -464,6 +499,13 @@ bool myGlobalConfig::Write (const wxString& key, const wxString& value) } +

    Is MS Active Accessibility supported?

    + +This is being worked on. Please see this page +for the current status. + +

    +