Re: The difference between Reference and Component?




"Jack" <replyto@it> wrote in message
news:OyxcprvMIHA.4740@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
My project is using dll (COM object) which is listed under References.
It works fine.
But, accidently when browsing the Components list I have found the same
dll,
listed under the same name but it is not selected (not checked).
I wonder, should that COM be used as a component or reference or both?
How to know? What can be a difference?
Your thoughts please,
Jack


Any COM component can provide implementation for multiple COM Interfaces.
Any component can also supply multiple controls, as well as mulitple
Interfaces. Thus no one component is necessary just a "Reference",
"Control", or "Designer", or ...

In general when VB loads the References list it merely reads the Registry
for those Interfaces that describe a typelibrary. When loading the
Components dialog it looks for those that describe themselves in the
Registry as "Controls" or "Insertable". "Designers" go through a similar
process with another level of indirection.

Also note just because you can "see" a component's interface in the Project
References or Components dialog doesn't necessary mean you can use it
successfully within your project. For example, the DataEnvironment component
msde (?) shows a Reference for the DE interface, but this interface is only
used by VB's internal designer manager.

hth
-ralph





.



Relevant Pages

  • Re: Building VB.NET Interface definitions from a COM interface
    ... situation which makes me uncomfortable where I have a COM DLL containing four COM interfaces, one of which is referenced by my .NET assembly. ... By that I mean that the COM DLL references an interface on the .NET assembly. ... but it has made debugging... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: export method from DLL
    ... > source files and I can not install it into Delphi7. ... I thought maybe I could add that VCL into DLL using D3 and use ... > Interfaces. ... if you look up the following two references on my home page ...
    (borland.public.delphi.language.objectpascal)
  • Re: Excel References
    ... registers the DLL properly on the user's machine then there shouldn't be any ... I re-establish the References, XL runs fine. ... "Joe" wrote in message ... Click OK and the VBE will register the DLL ...
    (microsoft.public.excel.programming)
  • Re: HowTo: Unregister a DLL/Control when the File no longer Exists
    ... Tony Proctor wrote: ... recorded in the registry. ... However, matching them up without the original DLL ... The main project references one of the DLLs, ...
    (microsoft.public.vb.general.discussion)
  • Re: Excel References
    ... <<If I have the References dialog open, I can't get to the Browser (as ... Click OK and the VBE will register the DLL and add it to ... the Browser lists it in the dropdown of available ...
    (microsoft.public.excel.programming)