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

New Message on BDOTNET

-----------------------------------------------------------
From: MihirP
Message 4 in Discussion

hi Sethu, 1. If you want to run your .NET components you need CCW ( COM Call Wrapper). 
To have CCW  Go to Project Properties -- > Configuration Properties - -> Build, check 
the Register for COM Interop. This create TLB file as well to u use as  a reference in 
VB project. 2. Now coming to programming part. Create you class with function and 
properties. Build the project. 3. Now open the VB project, go to add reference to the 
project that u have created abouve ( tlb file). 4. Create the instance of the project 
as normal COM component. example : Dim obj as new project.class             obj.
Now you will observe that its not showing the list of methods and properties. if you 
know the properties or the method just after the obj, give the procedure name. i.e 
obj.Method1. and execute the progam. Even the Object Browser will not display the list 
of method and properties available. 5. To get the list you have to use Attribute in 
.NET project and for these imports  system.runtime.interopservices . 6. Before the 
class Defination either use <COClass> or <ClassInterface(ClassInterfaceType.AutoDual> 
attribute. 7. Now complile the project, it will reregister the COM interop. 8. Thise 
you will get the method and properties after putting "." ( our bread and butter ).   
If you still have any issue, i suggest you to read article in COM Interoperability and 
there is one good book published by Wrox.   Regards, Mihir  

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

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