X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39dbf34b887a73c525da903d8599f4f6b7eb8f9..2fc2d511d0f095ab5de3713cff6042832f886d15:/docs/html/faqmsw.htm diff --git a/docs/html/faqmsw.htm b/docs/html/faqmsw.htm index 18584d9100..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?
  • @@ -242,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 @@ -280,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