Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet349/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   345   346   347   348   349   350   351   352   ...   453
fIgURE 16-5: 
Configure the IronPython application to work with Calcs.DLL.
5.
Type -D TestCalcs.py in the Arguments field.
6.
Click the ellipses in the Working Directory field to display the Browse for Folder dialog box. 
Locate the output folder of the 
Calcs.DLL
(or other extension) file. Click OK. The IDE adds 
the correct directory information to the Working Directory field.
7.
Open Windows Explorer. Locate the 
\Calcs\Calcs\bin\Debug
folder. Right-click in 
the right pane and choose New
➤➤➪➤➤
Text Document from the context menu. Name the 
file 
TestCalcs.py
and press Enter. Click Yes if asked if you want to rename the file 
extension.
8.
Right-click the solution item in Solution Explorer and choose Add
➤➤➪➤➤
Existing Item from the 
context menu to display the Add Existing Item dialog box shown in Figure 16-6.
9.
Locate the 
TestCalcs.py
file in the solution and click Add. Visual Studio adds 
TestCalcs.py
to the 
Solution Items
folder in Solution Explorer and automatically opens the file for you. 
You’re ready to add test code for the application.
548592c16.indd 334
2/24/10 12:49:23 PM
www.finebook.ir


Creating the Simple C# Extension
 

 
335
fIgURE 16-6: 
Add the TestCalcs.py file to the solution.
Creating the IronPython Application
Now that you have a file to use for the IronPython application, it’s time to add some code to it. The 
example code fully exercises everything you can do with the C# extension. Listing 16-2 shows the 
code you add to the 
TestCalcs.py
file.
LISTINg 16-2: 

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   345   346   347   348   349   350   351   352   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish