How to build BCB compatibile litgen.lib and litgen.h:

1. In separate folder copy litgen.idl from MS Reader SDK (1.5):

2. To the same folder extract builtins.mak and litgen.mak from this archive.

3. Open litgen.mak file in some text editor (notepad or similar) and change BCCROOT macro to path where is BCB Installed. Note that if your path has spaces youse DOS short path (C:\Program files\Borland\CBuilder5 will become C:\Progra~1\Borland\CBuild~1). 

4. Open command prompt and build library with make -f litgen.mak

How to build Delphi5 compatibile litgen.pas:

1. In separate folder copy litgen.idl from MS Reader SDK (1.5):

2. To the same folder extract builtins.mak and litgen.mak from this archive.

3. Open litgen.mak file in some text editor (notepad or similar) and change DELROOT5 macro to path where Delphi5 is Installed and BCCROOT macro to path where is BCB Installed. Note that if your path has spaces youse DOS short path (C:\Program files\Borland\Delphi5 will become C:\Progra~1\Borland\Delphi5). 

4. Open command prompt and build library with make -f litgen.mak delphi5

How to build Delphi6 compatibile litgen.pas:

1. In separate folder copy litgen.idl from MS Reader SDK (1.5):

2. To the same folder extract builtins.mak and litgen.mak from this archive.

3. Open litgen.mak file in some text editor (notepad or similar) and change DELROOT6 macro to path where Delphi6 is Installed and change BCCROOT macro to path where is BCB Installed. Note that if your path has spaces youse DOS short path (C:\Program files\Borland\Delphi6 will become C:\Progra~1\Borland\Delphi6). 

4. Open command prompt and build library with make -f litgen.mak delphi6
