PROJECT SETTINGS FOR THE CREATION OF THE DLL
Load on Visual C++ (we have used ver. 5.0). Create a new project called "new".
Select the 'Project type' as MFCAppWizard (dll) . Make sure the 'Directory'
is the root. Click on 'Create', then on 'Finish' and finally on 'OK'.
A bunch of files is created. We ruthlessly delete all of them. Now if making
a project and then slashing all its contents kind of piques you, let us make
it clear that we used a Wizard to evade the problems of creating a DLL file.
Now create a new Code/Text file called "new.c" and type in the given lines
of code. Before typing the lines of code press "Alt + F7" to get a dialog box
which mentions Project settings. In the drop down list box under Microsoft
Foundation Classes choose "Use MFC in a Static Library".
This is not the end of the settings. There is another tabbed header in the
Project settings which says "C/C++". Clicking on this header you get another
dialog box. In this box there is a drop down List Box with the name "Category"
besides it. from here choose "Precompiled Headers". In the same dialogbox you
should choose "Automatic use of pre compiled headers". This is the all the
changes you need to make to your settings before typing in the ".c" program.
Back to the Source Code Page.