unable to convert com component in to .net compitable dll

  • Thread starter Thread starter =?iso-8859-1?B?dmlzaGFsmQ==?=
  • Start date Start date
?

=?iso-8859-1?B?dmlzaGFsmQ==?=

I have come to know that bits is a concept being used for data transfer

over the internet.
I want to use this technology in my vb.net application. for this i
tried to convert the 'BITS.IDL' file to .net compitable code using the
'TLBIMP' utility. But i was unable to perform the action of converting
the com component to .net compitable dll.
I would like to know the procedure to do this.
I have gone thru some sites of microsoft but could not find the
solution for this.
any help would be appreciable.


regards
vishal.
 
If BITS is an already registered COM control available on your system, then
you can generate a reference to it using the "Add Reference..." menu item on
the context menu of the references section of your solution tree. Choose
the "COM" tab and then select the COM component that you wish to include.
You can then write "
Imports bits" in order to use the bits namespace (or whatever the component
namespace is called). If BITS is a control, you should be able to do a
similar thing by right clicking on the Toolbox and choosing "Add/Remove
Items".

..NET doesn't "convert" the COM component into a .NET component, it generates
an interop wrapper allowing communication between the managed .NET
environment and the unmanaged COM environment. This wrapper is shipped
alongside the COM component, ie. your application will still need to deploy
and register the original COM component in order for the interop wrapper to
work.

Remember that COM components are unmanaged and as such you have some
responsibility for handling and disposing of interface references properly
yourself. You can get in a bit of a pickle if you don't do this properly
;).

Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top