Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet180/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   176   177   178   179   180   181   182   183   ...   453
using Early Binding
As previously mentioned, using early binding means creating a reference to the COM component and 
then using that reference to interact with the component. IronPython doesn’t support the standard 
methods of early binding that you might have used in other languages. What you do instead is create 
an interoperability DLL and then import that DLL into your application. The “Defining an Interop 
548592c09.indd 165
2/24/10 12:48:17 PM
www.finebook.ir


166

CHAPTER 9
InteractIng wIth cOM Objects
DLL” section of the chapter describes this process in considerably more detail. Early binding provides 
the following benefits:
➤➤
Faster execution: Generally, your application will execute faster if you use early binding 
because you rely on compiled code for the interop assembly. However, you won’t get the 
large benefits in speed that you see when working with C# or Visual Basic.NET because 
IronPython itself is interpreted.


Easier debugging: In most cases, using early binding reduces the complexity of your applica-
tion, making it easier to debug. In addition, because much of the access code for the COM 
component resides in the interop assembly, you won’t have to worry about debugging it.


Fuller component access: Even though both early and late binding provide access to the com-
ponent interfaces, trying to work through those interfaces in IronPython is hard. Using early 
binding provides you with tools that you can use to explore the interop assembly, and there-
fore discover more about the component before you use it.


Better access to enumerations and constants: Using early binding provides you with access to 
features that you might not be able to access when using late binding. In some cases, IronPython 
will actually hide features such as enumerations or constants when using late binding.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   176   177   178   179   180   181   182   183   ...   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