Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2bf270

Browse files
committed
Update the example DLL instructions for 2.1. Add example.def to the
MSVC project file (as the instructions always recommended doing).
1 parent cc58363 commit a2bf270

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

PC/example_nt/example.dsp

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/example_nt/readme.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Example Python extension for Windows NT
44
This directory contains everything needed (except for the Python
55
distribution!) to build a Python extension module using Microsoft VC++
66
("Developer Studio") version 6. It has been tested with VC++ 6.0 on Python
7-
2.0b1. You can also use earlier versions of VC to build Python extensions,
7+
2.1a1. You can also use earlier versions of VC to build Python extensions,
88
but the sample VC project file (example.dsw in this directory) is in VC 6
99
format.
1010

@@ -22,7 +22,9 @@ OPEN THE PROJECT
2222
From VC 6.x, use the
2323
File -> Open Workspace...
2424
dialog (*not* the "File -> Open..." dialog!). Navigate to and select the
25-
file "example.dsw". Click Open.
25+
file "example.dsw", in the *copy* of the example_nt directory you made
26+
above.
27+
Click Open.
2628

2729
BUILD THE EXAMPLE DLL
2830
---------------------
@@ -52,14 +54,14 @@ debug output from Python may not match this screen dump exactly):
5254
C>..\..\PCbuild\python_d
5355
Adding parser accelerators ...
5456
Done.
55-
Python 2.0b1 (#0, Jul 1 2000, 11:29:37) [MSC 32 bit (Intel)] on win32
57+
2.1a1 (#9, Jan 17 2001, 23:26:42) [MSC 32 bit (Intel)] on win32
5658
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
5759
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
5860
>>> import example
59-
[8830 refs]
61+
[4897 refs]
6062
>>> example.foo()
6163
Hello, world
62-
[8830 refs]
64+
[4903 refs]
6365
>>>
6466

6567
TESTING THE RELEASE-MODE DLL
@@ -69,9 +71,8 @@ example_nt\Release. You should now be able to repeat the following session
6971
("C>" is the DOS prompt, ">>>" is the Python prompt):
7072

7173
C>..\..\PCbuild\python
72-
Python 2.0b1 (#0, Jul 1 2000, 11:28:35) [MSC 32 bit (Intel)] on win32
73-
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
74-
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
74+
Python 2.1a1 (#9, Jan 17 2001, 23:26:37) [MSC 32 bit (Intel)] on win32
75+
Type "copyright", "credits" or "license" for more information.
7576
>>> import example
7677
>>> example.foo()
7778
Hello, world
@@ -123,7 +124,7 @@ Use the
123124
dialog to create a new Project Workspace. Select "Win32 Dynamic-Link
124125
Library", enter the name ("spam"), and make sure the "Location" is set to
125126
the spam directory you have created (which should be a direct subdirectory
126-
of the Python build tree, a sibling of Inclue and PC). Select Win32 as the
127+
of the Python build tree, a sibling of Include and PC). Select Win32 as the
127128
platform (in my version, this is the only choice). Make sure the "Create
128129
new workspace" radio button is selected. Click OK.
129130

0 commit comments

Comments
 (0)