Re: view dll with oleview to create idl

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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




.



Relevant Pages

  • Re: Problem marshalling interface pointer into local server
    ... I hope by main you mean the project for the shared IDL, ... Now that would be correct - an Automation-compatible interface ... Further to this, I had an issue where I have a in-proc server, ... Both servers implements IFace and register their ...
    (microsoft.public.vc.atl)
  • RE: Once again Vista logon (ICredentialProvider)
    ... I am new to COM and I didn't register correctly my component. ... Now it's done my DLL is loaded but everytime "DllGetClassObject " is ... never affect a ICredentialProvider object! ... > I'm implementing the ICredentialProvider interface to replace my GINA. ...
    (microsoft.public.platformsdk.security)
  • Re: Register Redemption Object
    ... The "DLLRegisterServery entry point was not found" error means that either ... they were trying to load a wrong dll or tha tteh dll is damaged. ... when I ask them to register the .dll on ... to interface type 'Redemption.IMAPIUtils'. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: ATL 3.0 DLL does not register interface
    ... Yes, i tried the test on a test sample, so i just built a ATL-DLL added an ... Then i used a simple test client to instanciate the dll and it gives me ... interface it implements is the IUnknown ... ATL 3.0 DLL does not register interface ...
    (microsoft.public.vc.atl)
  • Re: IRibbonExtensibility and Exchange Client Addin
    ... I did implement COM Addin stuff in my dll. ... But what do you mean by "register the COM Addin registry keys". ... IRibbonExtensibility interface separately? ...
    (microsoft.public.office.developer.com.add_ins)