Now that most of the necessities have been covered, it is time to go about creating an example. I used Microsoft’s Visual C++ 6.0 (actually MS Visual Studio), so you might need to make changes to your specific environment where necessary.
The first thing you need to do is create the files listed in Examples 10.25 through 10.28:
Example 10.25 is a Perl script that demonstrates how to call the extension.
Example 10.26 is a Perl module required to load the extension.
Example 10.27 is the actual extension itself.
Example 10.28 is the DLL definition (.def) file.
The next step is to create a new Win32 DLL project (don’t use any MFC classes). In MSVC 5.0 and 6.0, creating a new project automatically creates a new workspace for the ...