
*****************************************************************************

What is it?

This is a Windows program which will take selected files and compile them into a direcory pointer to by the 
"BaseDirectory" entry in "DLGAPP.INI".

The source files have a special 1st line which identifies the output 'FileName' when created new project files.  
An entry for each file is contained in "DLGAPP.INI".  If an entry for the appropriate filename does not exist 
one will be created.

I have included all the base source which may be used in conjunction with DLGAPP.EXE.  This program is 
available on Compuserve in this forum.  DLGAPP is a base code creator simular to Microsoft's AppWizzard.  
It differs in that the application it creates uses a dialog template as the parent window.

With the code supplied you can compile the base sources into project template files which may then be 
used by DLGAPP.EXE when creating it's base. Feel free to modify the main sources to add/remove 
functionality from the base application which is created.

I have included a MAK file ("theapp.mak") which is capable of compiling the application prior to placing it 
into the .INI file.  If you examine the readme.txt file which came with DLGAPP and examine the source you 
will notice a number of places which contain #if define _...  These are used by DLGAPP when creating an 
application to selectively include/exclude sections of code.  The define _ALLOPTIONS is used when testing 
and debugging the base prior to compiling it for use.

Once you have the code performing to your liking run "COMPILE.EXE".  Within the listbox you will find a 
list of all the files within the current directory.  The application is smart enough to ignore files which do no 
bear the "//#define MYTITLE	{<FileName>}" line so you don't have to waste time picking out 
selected files unless you want to for some reason (maybe you only changed 1 file).  Then select one of the 
compile options and wait a moment.  The program will display status information on it's progress.

Limitations:

1) The source code; that is the code being compiled, and COMPILE.EXE must all reside in the same 
directory.  There is no directory selection built into the listbox.

2) You must manually edit the GENERIC.MAK file.  This is more a limitation resulting from MSVC not 
recognizing comment lines.  MSVC also rewrites the .MAK file whenever things change.  As a result you 
will have to manually add the following:

	"#define MYTITLE {GENERIC.MAK}" at the top of the file

As well as "#if defined _TOOLBAR" and a coorisponding "#endif" around the bitmap filename so it is not 
included in the project if a toolbar was not selected.

And "#if defined _CTL3D" and a coorisponding "#endif" around the CTL3D.LIB filename so it is not 
included durring the link.  This file is not as important since it will be excluded if none of it's functions are 
being called.
	
If I ever figure a good way around this I will patch the compiler to act accordingly.
	
Comments:

This is not a fancy program but it does the job.  I used it to compile the files for the DLGAPP.EXE program 
available online.

Future enhancements:

 - Depends on what I think up..., and any support I get.
 
Feel free to upload your .INI extentions for DLGAPP.EXE.  If you include DLGAPP.EXE in your upload you 
must give proper recognition to me.  All original files which came with DLGAPP.EXE must also be included 
especially the readme.txt which contains my contact location.

Happy programming!

