Add author list as with the other guides.

Small cleanups.
This commit is contained in:
Dimitrie O. Paun 2003-10-02 04:25:44 +00:00 committed by Alexandre Julliard
parent 80f6481751
commit 4020a21f97
4 changed files with 27 additions and 34 deletions

View file

@ -1,9 +1,10 @@
<chapter id="bindlls"> <chapter id="bindlls">
<title id="bindlls.title">Using Linux libraries as DLLs</title> <!-- FIXME: note that you can link PE DLLs to Winelib apps -->
<title id="bindlls.title">Building WineLib DLLs</title>
<sect1 id="bindlls-intro"> <sect1 id="bindlls-intro">
<title id="binary-dlls-intro.title">Introduction</title> <title id="binary-dlls-intro.title">Introduction</title>
<para> <para>
For one reason or another you may find yourself with a Linux shared For one reason or another you may find yourself with a Linux
library that you want to use as if it were a Windows Dll. There are library that you want to use as if it were a Windows Dll. There are
various reasons for this including the following: various reasons for this including the following:
<itemizedlist> <itemizedlist>
@ -17,14 +18,14 @@
<listitem> <listitem>
<para> <para>
There is a well-defined interface available and there are several There is a well-defined interface available and there are several
Linux solutions that are available for it. Linux solutions that are available for it
(The ODBC interface in Wine) (e.g. the ODBC interface in Wine).
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
You wish to do something that you can do in Linux but Wine does You have a binary only Windows application that can be extended
not yet support it. through plugins, such as a text editor or IDE.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
@ -184,8 +185,7 @@ signed short WINAPI MyProxyWinFunc (unsigned short a, void *b, void *c,
is quite long it is extremely simple in structure. is quite long it is extremely simple in structure.
</para> </para>
<para> <para>
The MAIN_OdbcInit function is the function that was named in the <function>DllMain</function> the function is used to initialize the DLL.
<link linkend="bindlls-spec">spec file</link> as the init function.
On the process attach event the function dynamically links to the On the process attach event the function dynamically links to the
desired Linux ODBC library (since there are several available) and desired Linux ODBC library (since there are several available) and
builds a list of function pointers. It unlinks on the process builds a list of function pointers. It unlinks on the process

View file

@ -46,19 +46,12 @@
<sect1 id="mfc-legal-issues"> <sect1 id="mfc-legal-issues">
<title id="mfc-legal-issues.title">Legal issues</title> <title id="mfc-legal-issues.title">Legal issues</title>
<para>
(Extracted from the HOWTO-Winelib written by Wilbur Dale
&lt;wilbur.dale@lumin.nl&gt;)
</para>
<para> <para>
The purpose of this section is to make you aware of potential legal The purpose of this section is to make you aware of potential legal
problems. Be sure to read your licenses and to consult your lawyers. problems. Be sure to read your licenses and to consult your lawyers.
In any case you should not consider the remainder of this section to In any case you should not consider the remainder of this section to
be authoritative since it has not been written by a lawyer. be authoritative since it has not been written by a lawyer.
</para> </para>
<para>
Well, let's try to have a look at the situation anyway.
</para>
<para> <para>
During the compilation of your program, you will be combining code During the compilation of your program, you will be combining code
from several sources: your code, Winelib code, Microsoft MFC code, from several sources: your code, Winelib code, Microsoft MFC code,

View file

@ -6,12 +6,11 @@
<para> <para>
The <literal>wchar_t</literal> type has different standard The <literal>wchar_t</literal> type has different standard
sizes in Unix (4 bytes) and Windows (2 bytes). Recent versions sizes in Unix (4 bytes) and Windows (2 bytes). You need a
of gcc (2.9.7 or later) support the recent gcc version (2.9.7 or later) that supports the
<parameter>-fshort-wchar</parameter> option to set the <parameter>-fshort-wchar</parameter> option to set the
size of <literal>wchar_t</literal> to the one expected size of <literal>wchar_t</literal> to the one expected
by Windows applications. Pass this option to every file by Windows applications.
that is built.
</para> </para>
<para> <para>
@ -21,26 +20,11 @@
the msvcrt runtime library instead of glibc. The functions in the msvcrt runtime library instead of glibc. The functions in
glibc will not work correctly with 16 bit strings. glibc will not work correctly with 16 bit strings.
</para> </para>
<para>
To prevent warnings when declaring a single unicode character
in C, use <function>(WCHAR)L'x'</function>, rather than
<function>__TEXT('x')</function>. This works on Windows also.
</para>
</sect1> </sect1>
<sect1 id="C-library"> <sect1 id="C-library">
<title id="C-library.title">C library</title> <title id="C-library.title">C library</title>
<!-- *** Is all of this covered now? Make sure before deleting ***
<para>
Winelib currently only supports on C library: that of your
compiler. three solutions: native, mixed or msvcrt except we
only have native right now, using the native C library ->
different behavior: fopen, O_TEXT, unicode support,
reimplement msvcrt
</para>
-->
<para> <para>
There are 2 choices available to you regarding which C library There are 2 choices available to you regarding which C library
to use: the native glibc C library or the msvcrt C library. to use: the native glibc C library or the msvcrt C library.

View file

@ -12,6 +12,22 @@
<book id="index"> <book id="index">
<bookinfo> <bookinfo>
<title>Winelib User's Guide</title> <title>Winelib User's Guide</title>
<!-- Until we learn how to format this thing nicely,
we can't really incude it -->
<!--authorgroup>
<author>
<firstname>Wilbur</firstname>
<surname>Dale</surname>
</author>
<author>
<firstname>Francois</firstname>
<surname>Gouget</surname>
</author>
<author>
<firstname>John</firstname>
<surname>Sheets</surname>
</author>
<authorgroup-->
</bookinfo> </bookinfo>
&intro; &intro;