# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python20.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample\r
# SUBTRACT LINK32 /pdb:none\r
\r
!ELSEIF "$(CFG)" == "example - Win32 Debug"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python20_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample\r
# SUBTRACT LINK32 /pdb:none\r
\r
!ENDIF \r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=.\example.def\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=.\readme.txt\r
# End Source File\r
# End Group\r
This directory contains everything needed (except for the Python\r
distribution!) to build a Python extension module using Microsoft VC++\r
("Developer Studio") version 6. It has been tested with VC++ 6.0 on Python\r
-2.0b1. You can also use earlier versions of VC to build Python extensions,\r
+2.1a1. You can also use earlier versions of VC to build Python extensions,\r
but the sample VC project file (example.dsw in this directory) is in VC 6\r
format.\r
\r
From VC 6.x, use the\r
File -> Open Workspace...\r
dialog (*not* the "File -> Open..." dialog!). Navigate to and select the\r
-file "example.dsw". Click Open.\r
+file "example.dsw", in the *copy* of the example_nt directory you made\r
+above.\r
+Click Open.\r
\r
BUILD THE EXAMPLE DLL\r
---------------------\r
C>..\..\PCbuild\python_d\r
Adding parser accelerators ...\r
Done.\r
- Python 2.0b1 (#0, Jul 1 2000, 11:29:37) [MSC 32 bit (Intel)] on win32\r
+ 2.1a1 (#9, Jan 17 2001, 23:26:42) [MSC 32 bit (Intel)] on win32\r
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam\r
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)\r
>>> import example\r
- [8830 refs]\r
+ [4897 refs]\r
>>> example.foo()\r
Hello, world\r
- [8830 refs]\r
+ [4903 refs]\r
>>>\r
\r
TESTING THE RELEASE-MODE DLL\r
("C>" is the DOS prompt, ">>>" is the Python prompt):\r
\r
C>..\..\PCbuild\python\r
- Python 2.0b1 (#0, Jul 1 2000, 11:28:35) [MSC 32 bit (Intel)] on win32\r
- Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam\r
- Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)\r
+ Python 2.1a1 (#9, Jan 17 2001, 23:26:37) [MSC 32 bit (Intel)] on win32\r
+ Type "copyright", "credits" or "license" for more information.\r
>>> import example\r
>>> example.foo()\r
Hello, world\r
dialog to create a new Project Workspace. Select "Win32 Dynamic-Link\r
Library", enter the name ("spam"), and make sure the "Location" is set to\r
the spam directory you have created (which should be a direct subdirectory\r
-of the Python build tree, a sibling of Inclue and PC). Select Win32 as the\r
+of the Python build tree, a sibling of Include and PC). Select Win32 as the\r
platform (in my version, this is the only choice). Make sure the "Create\r
new workspace" radio button is selected. Click OK.\r
\r