-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: spprivate
Message 2 in Discussion

Hi Vijay You can add a reference to the COM Component by right clicking on the 
solution explorer-> references-> COM tab.There you can browse for it and add.    
Visual Basic .NET automatically creates interop assemblies when you add a reference to 
a type library from the integrated development environment (IDE). When working from 
the command line, you can use the Tlbimp utility to manually create interop 
assemblies. 
To create an interop assembly using Tlbimp      Add the location of Tlbimp to the DOS 
search path, if it is not already part of the search path and you are not currently in 
the directory where it is located.         Call Tlbimp from a DOS prompt, providing 
the following information:     Name and location of the DLL that contains the type 
library     Name and location of the namespace where the information should be placed  
     Name and location of the target interop assembly  
For EgTlbimp test3.dll /out:NameSpace1 /out:Interop1.dll 
You can use Tlbimp to create interop assemblies for type libraries, even for 
unregistered COM objects. However, the COM objects referred to via interop assemblies 
must be properly registered on the computer where they are to be used. You can 
register a COM object by using the Regsvr32 utility included with the Windows 
operating system.   Interop assemblies are .NET assemblies that act as a bridge 
between managed and unmanaged code, mapping COM object members to equivalent .NET 
managed members. The common language runtime exposes COM objects through a proxy 
called the runtime callable wrapper (RCW). its primary function is to marshal calls 
between a .NET client and a COM object.The runtime creates exactly one RCW for each 
COM object, regardless of the number of references that exist on that object   Cheers 
Satheesh

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to