From a6dd4eeab87d2562bd6280c594e01869e0bc4aa1 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 4 Apr 2018 16:21:09 +1000 Subject: Move DLL entry points DllMain and Scintilla_DirectFunction into ScintillaDLL.cxx to simplify build process by eliminating the compilation of ScintillaWin.cxx into ScintillaWinS.o|obj. --- doc/ScintillaDoc.html | 9 ++++----- doc/ScintillaHistory.html | 5 ++++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 8ba5d668b..dcd61adb3 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -8298,12 +8298,11 @@ EM_SETTARGETDEVICE

On Windows, Scintilla is normally used as a dynamic library as a .DLL file. If you want to link Scintilla directly into your application .EXE or .DLL file, then you can link to the static library - bin/libscintilla.lib (or .a if using GCC) and call Scintilla_RegisterClasses. Otherwise, if using an IDE or other build system, then the - STATIC_BUILD preprocessor symbol should be defined and - Scintilla_RegisterClasses called. STATIC_BUILD prevents compiling the - DllMain function which will conflict with any DllMain defined in your - code. Scintilla_RegisterClasses takes the HINSTANCE of your + bin/libscintilla.lib (or .a if using GCC) and call Scintilla_RegisterClasses. + Scintilla_RegisterClasses takes the HINSTANCE of your application and ensures that the "Scintilla" window class is registered.

+

When producing a stand-alone Scintilla DLL, the ScintillaDLL.cxx file should be compiled and + linked in to provide DllMain and Scintilla_RegisterClasses.

Ensuring lexers are linked into Scintilla

diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 222b29a2e..5e89dd1cb 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -543,7 +543,10 @@
  • On Win32, the standard makefiles build a libscintilla static library as well as the existing dynamic libraries. - The statically linked version of SciTE, Sc1, links to this static library. + The statically linked version of SciTE, Sc1, links to this static library. A new file, ScintillaDLL.cxx, provides + the DllMain function required for a stand-alone Scintilla DLL. Build and project files should include this + file when producing a DLL and omit it when producing a static library or linking Scintilla statically. + The STATIC_BUILD preprocessor symbol is no longer used.
  • In some cases, invalid UTF-8 is handled in a way that is a little friendlier. -- cgit v1.2.3