X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2edb0bdef6238c8c246b6978bc14828b7033d931..59a944cb633f57f427fd16f0a8e65b15edf6dc1e:/docs/html/faqmsw.htm
diff --git a/docs/html/faqmsw.htm b/docs/html/faqmsw.htm
index cf82acb137..2c56fedb31 100644
--- a/docs/html/faqmsw.htm
+++ b/docs/html/faqmsw.htm
@@ -1,4 +1,3 @@
-
@@ -35,6 +34,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 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?
Why do I sometimes get bizarre crash problems using VC++ 5/6?
@@ -216,6 +216,25 @@ 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.
+
+
+If you get errors like
+
+
+no matching function for call to 'wxDC::DrawTextA(const char[5], int,
+int)'
+
+
+or similar ones for the other functions, i.e. the compiler error messages
+mention the function with the 'A' suffix while you didn't
+use it in your code, the explanation is that you had included
+<windows.h> header which redefines many symbols to have such
+suffix (or 'W' in the Unicode builds).
+
+
+The fix is to either not include <windows.h> at all or include
+"wx/msw/winundef.h" immediately after it.
+
The most common cause of this problem is the memory debugging settings in
@@ -305,7 +324,7 @@ The templates are described in tmake ref manual (1-2 pages of text)
and are quite simple. They do contain some Perl code, but my Perl is
primitive (very C like) so it should be possible for anybody to make
trivial modifications to it (I hope that only trivial modifications
-will be needed). I've tagged the old makefiles as MAKEFILES_WITHOUT_TMAKE
+will be needed). I've tagged the ol makefiles as MAKEFILES_WITHOUT_TMAKE
in the cvs, so you can always retrieve them and compare the new ones,
this will make it easier to solve the problems you might have.
@@ -395,7 +414,7 @@ First, you can use wxRegKey directly, for example:
regKey.SetName(idName);
{
- wxLogNull dummy;
+ wxLogNull dummy;
if (!regKey.Create())
{
idName = wxT("HKEY_CURRENT_USER\\SOFTWARE\\My Company\\My Product\\Stuff\\");