Re: view dll with oleview to create idl
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Thu, 13 Sep 2007 20:21:40 -0500
"MP" <NoSpam@xxxxxxxxxx> wrote in message
news:Og2rfzl9HHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
"MP" <NoSpam@xxxxxxxxxx> wrote in message
news:ubr8Svl9HHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
according to some info found somewhere??? :-)
'supposedly a quickie way to generate an idl
If I register the dll, it shows up under AllObjects, but only the multuse
cDummy.cls shows up,
The interface dll class I want to create the tlb for doesn't show up....
???
Mark
Here is an interesting article:
http://edndoc.esri.com/arcobjects/9.0/ExtendingArcObjects/Ch02/TypeLibrariesAndIDL.htm
Read the section near the end - ""Creating an external type library for a
component created in VB"
The article is for another product, but the authors did a good job of
summarizing all the steps.
You are leaving a couple of steps out of your first attempt.
1) The component must be registered, and after you find the component in the
OLEViewer it is the Type library that you grab and use as a nucleus for your
own IDL, which you then compile.
2) It can't be multi-use. It has to be public noncreatable. Think about it.
You can't actually "use" an interface as it is not concrete, it has to be
implemented by something that is concrete.
If you follow the steps in the above article you shouldn't have any trouble.
Also appreciate that swiping the typelib this way is useful for getting a
handle on how various VB functions etc convert into an IDL - but it won't be
long before you can write them from scratch just as easily.
http://edndoc.esri.com/arcobjects/9.0/ExtendingArcObjects/Appendices/EditingIDL.htm
hth
-ralph
.
- Follow-Ups:
- References:
- view dll with oleview to create idl
- From: MP
- Re: view dll with oleview to create idl
- From: MP
- view dll with oleview to create idl
- Prev by Date: Re: Seeming If "instability"
- Next by Date: Re: Excel API
- Previous by thread: Re: view dll with oleview to create idl
- Next by thread: Re: view dll with oleview to create idl
- Index(es):
Relevant Pages
|