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

New Message on BDOTNET

-----------------------------------------------------------
From: LovedJohnySmith
Message 2 in Discussion

Good Day Ritesh,     You need to use TlbImp for you COM importation, basically 
it will take care IDE itself while you are reference into your COM object. 
lemmi explain here, how we can use to employ ADO Recordset objects in our 
managed application. We can use the TlbImp tool to import the type library from 
existing COM objects, that have methods and properties returning the Recordset 
objects.   Consider a case of a typical COM component, for example, XXX.dll, 
which has a method returning a Recordset of inventory records. First, we would 
use TlbImp to import the type library into a .NET assembly: C:\>tlbimp 
/out:XXXObjects.dll XXX.dll 
This imports the type library to ShopObjects.dll. Next, add reference to this 
managed assembly into a managed application: csc /r:XXXObjects.dll 
/r:ClassicADO.dll XXXApplication.cs   Then in our managed assembly, create this 
unmanaged component as a regular CLR object using the new operator.   Thanx, 
Smith

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

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