X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2d48b36a65f1f9adda42027cc02d7ace47890dc..b8be6ceacfa3ffb8304559d28e759c7b5613ec15:/docs/html/faqmsw.htm?ds=sidebyside diff --git a/docs/html/faqmsw.htm b/docs/html/faqmsw.htm index 7cf90ae7ec..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?
  • @@ -63,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?

    @@ -243,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 @@ -281,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