Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
fc1a7ce9
Kaydet (Commit)
fc1a7ce9
authored
Ara 15, 2001
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update the example Windows extension to 2.2 (was hardcoded to 2.1).
üst
b9c0ef5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
example.dsp
PC/example_nt/example.dsp
+2
-2
readme.txt
PC/example_nt/readme.txt
+9
-9
No files found.
PC/example_nt/example.dsp
Dosyayı görüntüle @
fc1a7ce9
...
...
@@ -53,7 +53,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# 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
# 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 python2
1
.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample
# 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 python2
2
.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
!ELSEIF "$(CFG)" == "example - Win32 Debug"
...
...
@@ -80,7 +80,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# 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
# 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 python2
1
_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample
# 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 python2
2
_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
!ENDIF
...
...
PC/example_nt/readme.txt
Dosyayı görüntüle @
fc1a7ce9
...
...
@@ -4,7 +4,7 @@ Example Python extension for Windows NT
This directory contains everything needed (except for the Python
distribution!) to build a Python extension module using Microsoft VC++
("Developer Studio") version 6. It has been tested with VC++ 6.0 on Python
2.
1a
1. You can also use earlier versions of VC to build Python extensions,
2.
2c
1. You can also use earlier versions of VC to build Python extensions,
but the sample VC project file (example.dsw in this directory) is in VC 6
format.
...
...
@@ -54,13 +54,13 @@ debug output from Python may not match this screen dump exactly):
C>..\..\PCbuild\python_d
Adding parser accelerators ...
Done.
Python 2.
1a1 (#9, Jan 17 2001, 23:26:37
) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
Python 2.
2c1+ (#28, Dec 14 2001, 18:06:39
) [MSC 32 bit (Intel)] on win32
Type "
help", "
copyright", "credits" or "license" for more information.
>>> import example
[
4897
refs]
[
7052
refs]
>>> example.foo()
Hello, world
[
4903
refs]
[
7052
refs]
>>>
TESTING THE RELEASE-MODE DLL
...
...
@@ -70,8 +70,8 @@ example_nt\Release. You should now be able to repeat the following session
("C>" is the DOS prompt, ">>>" is the Python prompt):
C>..\..\PCbuild\python
Python 2.
1a1 (#9, Jan 17 2001, 23:26:37
) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
Python 2.
2c1+ (#28, Dec 14 2001, 18:06:04
) [MSC 32 bit (Intel)] on win32
Type "
help", "
copyright", "credits" or "license" for more information.
>>> import example
>>> example.foo()
Hello, world
...
...
@@ -144,11 +144,11 @@ in the "Additional library path:" box.
Now you need to add some mode-specific settings:
Select "Win32 Release" in the "Settings for:" dropdown list. Click the
"Link" tab, choose the "Input" Category, and append "python2
1
.lib" to the
"Link" tab, choose the "Input" Category, and append "python2
2
.lib" to the
list in the "Object/library modules:" box.
Select "Win32 Debug" in the "Settings for:" dropdown list, and append
"python2
1
_d.lib" to the list in the "Object/library modules:" box. Then
"python2
2
_d.lib" to the list in the "Object/library modules:" box. Then
click on the C/C++ tab, select "Code Generation" from the "Category:"
dropdown list, and select "Debug Multithreaded DLL" from the "Use run-time
library:" dropdown list.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment