X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae8b97cf4ba6dc8c6bca5e76744c6dccb1ebbb59..da590c59c76028158708a0e9dea4e8e16ecceec2:/docs/html/standard.htm?ds=inline
diff --git a/docs/html/standard.htm b/docs/html/standard.htm
index 15ee6ef106..1b8e6cf15d 100644
--- a/docs/html/standard.htm
+++ b/docs/html/standard.htm
@@ -55,6 +55,7 @@ C++ portability guide by David Williams.
+Never use C++ comments in C code - not all C compilers/preprocessors +understand them. Although we're mainly concerned with C++ here, there are +several files in wxWindows sources tree which are compiled with C compiler. +Among them are include/wx/setup.h and include/wx/expr.h. + +Another thing related to C vs C++ preprocessor differences is that some old C +preprocessors require that all directives start in the first column (while +it's generally allowed to have any amount of whitespace before them in C++), +so you should start them in the beginning of the line in files which are +compiled with C compiler. +
In C++, the constructors of global variables are called before the main() function (or WinMain() or any other program entry point) @@ -577,6 +590,13 @@ While DOS/Windows compilers don't seem to mind, their Unix counterparts don't like files without terminating new-line. Such files also give a warning message when loaded to vim (the Unix programmer's editor of choice :-)), so please think about terminating the last line. + +
+The linker on VMS is case-insensitive. Therefore all external variables and
+functions which differ only in case are not recognized by the linker as
+different, so all externals should differ in more than the case only:
+i.e. GetId is the same as
There also several other places where you should take care of shared -library case: all IMPLEMENT_xxx macros which are usually used in the -corresponding .cpp files must be taken inside -"#if !USE_SHARED_LIBRARY" and in the #if USE_SHARED_LIBRARY -case you should put them inside common/cmndata.cpp file. -
There is a convention in wxWindows to prefix the accessors (i.e. any simple, in general, inline function which does nothing else except changing or returning