annotate ext/libpng-1.2.29/projects/cbuilder5/libpng.cpp @ 70:09b19289269e

updated LICENSE, for rio_de_hola, with my latest commits.
author kaelisebonrai@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 17 Jul 2008 07:53:09 +0000
parents 73a9f7addd33
children
rev   line source
56
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
1 //---------------------------------------------------------------------------
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
2 #include <windows.h>
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
3 //---------------------------------------------------------------------------
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
4 // Important note about DLL memory management when your DLL uses the
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
5 // static version of the RunTime Library:
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
6 //
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
7 // If your DLL exports any functions that pass String objects (or structs/
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
8 // classes containing nested Strings) as parameter or function results,
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
9 // you will need to add the library MEMMGR.LIB to both the DLL project and
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
10 // any other projects that use the DLL. You will also need to use MEMMGR.LIB
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
11 // if any other projects which use the DLL will be performing new or delete
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
12 // operations on any non-TObject-derived classes which are exported from the
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
13 // DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
14 // EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
15 // the file BORLNDMM.DLL should be deployed along with your DLL.
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
16 //
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
17 // To avoid using BORLNDMM.DLL, pass string information using "char *" or
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
18 // ShortString parameters.
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
19 //
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
20 // If your DLL uses the dynamic version of the RTL, you do not need to
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
21 // explicitly add MEMMGR.LIB as this will be done implicitly for you
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
22 //---------------------------------------------------------------------------
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
23
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
24 int WINAPI DllEntryPoint(HINSTANCE, unsigned long, void*)
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
25 {
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
26 return 1;
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
27 }
73a9f7addd33 * Eol-style fixes
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
28 //---------------------------------------------------------------------------
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29