diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-04 16:21:09 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-04 16:21:09 +1000 |
| commit | 1cd26e8ee9577099631a72836197afd101aaaff5 (patch) | |
| tree | 351f1315f4577970747aa37d273c2f7fd84d1883 /doc/ScintillaDoc.html | |
| parent | 27a277fe4bfeff302b3ad4752e59311ef6426193 (diff) | |
| download | scintilla-mirror-1cd26e8ee9577099631a72836197afd101aaaff5.tar.gz | |
Backport: 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.
Backport of changeset 6670:cfe90078d684.
Diffstat (limited to 'doc/ScintillaDoc.html')
| -rw-r--r-- | doc/ScintillaDoc.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 2fcc5612b..00b912750 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -8320,12 +8320,11 @@ EM_SETTARGETDEVICE <p>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 <code>Scintilla_RegisterClasses</code>. Otherwise, if using an IDE or other build system, then the - <code>STATIC_BUILD</code> preprocessor symbol should be defined and - <code>Scintilla_RegisterClasses</code> called. <code>STATIC_BUILD</code> prevents compiling the - <code>DllMain</code> function which will conflict with any <code>DllMain</code> defined in your - code. <code>Scintilla_RegisterClasses</code> takes the <code>HINSTANCE</code> of your + bin/libscintilla.lib (or .a if using GCC) and call <code>Scintilla_RegisterClasses</code>. + <code>Scintilla_RegisterClasses</code> takes the <code>HINSTANCE</code> of your application and ensures that the "Scintilla" window class is registered.</p> + <p>When producing a stand-alone Scintilla DLL, the ScintillaDLL.cxx file should be compiled and + linked in to provide <code>DllMain</code> and <code>Scintilla_RegisterClasses</code>.</p> <h3>Ensuring lexers are linked into Scintilla</h3> |
