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

New Message on BDOTNET

-----------------------------------------------------------
From: shri
Message 1 in Discussion

 
I created a Vb.NET class library. Here are the stpes: 
1.Cretaed a "Maths" class :
Imports System
Namespace iRely.Maths
   Public Class Maths
      Public Function Sum(ByVal a As Int16, ByVal b As Int16) As Int16
         Return (a + b)
      End Function
     Public Function Difference(ByVal a As Int16, ByVal b As Int16) As Int16
         Return (a - b)
     End Function
   End Class
End Namespace 
2. Created a StrongName by typing in .NET command prompt:
c:/>SN -k strngNmMaths.snk 

3.In AssemblyInfo.VB Added
<Assembly: AssemblyKeyFile("C:\strngNm.snk")> 

4. Compiled the Class Lib in Release mode:
5. Copied the Math.dll at c:
6. Run the following commands from the Dot net Command Prompt.
    a) tlbexp Maths.dll /out:Maths.tlb
    b) regasm /tlb=Maths.tlb DLL_FOR_10G.dll
    c) gacutil /if DLL_FOR_10G.dll 
All command executed without error. 
Now I opened VB6 project, set refernce to Maths.tlb.
Now I instantiated the object 
Dim ObjMath as new Maths
msgbox ObjMath.Sum(3,5)
its displays 8!!!
 
Now the problem.
//When i create instance
Dim ObjMath as new Maths 
//And type objMath., it do not list the members of Maths class in intellisense.
Can anyone help me out? 
Rgds,
Shri

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

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