]> granicus.if.org Git - python/commitdiff
Update the example DLL instructions for 2.1. Add example.def to the
authorTim Peters <tim.peters@gmail.com>
Fri, 19 Jan 2001 08:45:48 +0000 (08:45 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 19 Jan 2001 08:45:48 +0000 (08:45 +0000)
MSVC project file (as the instructions always recommended doing).

PC/example_nt/example.dsp
PC/example_nt/readme.txt

index 0f89e676d5126c8c2b87054eaabfb985a5dc20dd..5d806188f5c8d68378be2c37aafd14569f363012 100644 (file)
@@ -53,7 +53,7 @@ BSC32=bscmake.exe
 # 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
@@ -80,7 +80,7 @@ BSC32=bscmake.exe
 # 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
@@ -98,6 +98,10 @@ SOURCE=.\example.c
 # 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
index 66dbea08e888249b2a6028160a99a42b4e9aeb14..cf491299edf51e70b9c41d6d22abffafb3f1850f 100644 (file)
@@ -4,7 +4,7 @@ Example Python extension for Windows NT
 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
@@ -22,7 +22,9 @@ OPEN THE PROJECT
 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
@@ -52,14 +54,14 @@ debug output from Python may not match this screen dump exactly):
     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
@@ -69,9 +71,8 @@ example_nt\Release.  You should now be able to repeat the following session
 ("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
@@ -123,7 +124,7 @@ Use the
 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