Professional IronPython


understanding the Type Library Import utility



Download 20,35 Mb.
Pdf ko'rish
bet183/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   179   180   181   182   183   184   185   186   ...   453
understanding the Type Library Import utility
Remember that you always use Type Library Import (TLbImp) for components, not for controls. 
Before you can use TLbImp, you need to know a bit more about it. Here’s the command line syntax 
for the tool:
TlbImp TypeLibName [Options]
The 
TypeLibName
argument is simply the filename of the COM component that you want to use to 
create an interop assembly. A COM component can have a number of file extensions, but the most 
common extensions are 
.DLL

.EXE
, and 
.OCX
.
The TypeLibName argument can specify a resource identifier when the library 
contains more than one resource. Simply follow the filename with a backslash 
and the resource number. For example, the command line 
TLbImp MyModule 
.DLL\1
 would create an output assembly that contains only resource 1 in the 
MyModule.DLL
 file.
548592c09.indd 167
2/24/10 12:48:17 PM
www.finebook.ir


168

CHAPTER 9
InteractIng wIth cOM Objects
You can also include one or more options that modify the behavior of TLbImp. The following list 
describes these options.
➤➤
/out:
FileName
: Provides the name of the file you want to produce as output. If you don’t 
provide this argument, the default is to add 
Lib
to the end of the filename for the type 
library. For example, 
WMP.DLL
becomes 
WMPLib.DLL
.


/namespace:
Namespace
: Defines the namespace of the classes within the interop assembly. 
The default is to add 
Lib
to the filename of the type library. For example, if the file has a 
name of 
WMP.DLL
, the namespace is 
WMPLib
.



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   179   180   181   182   183   184   185   186   ...   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