Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralShell.Run Pin
mihai12324-Apr-08 2:52
mihai12324-Apr-08 2:52 
GeneralRe: Shell.Run Pin
Steven J Jowett24-Apr-08 4:56
Steven J Jowett24-Apr-08 4:56 
GeneralRe: Shell.Run Pin
mihai12324-Apr-08 7:27
mihai12324-Apr-08 7:27 
GeneralRe: Shell.Run Pin
Thomas Stockwell25-Apr-08 14:11
professionalThomas Stockwell25-Apr-08 14:11 
Generali am using this code in installer class . Pin
Piyush Vardhan Singh24-Apr-08 2:05
Piyush Vardhan Singh24-Apr-08 2:05 
GeneralRe: i am using this code in installer class . Pin
Christian Graus24-Apr-08 2:31
protectorChristian Graus24-Apr-08 2:31 
GeneralRe: i am using this code in installer class . Pin
Piyush Vardhan Singh24-Apr-08 2:46
Piyush Vardhan Singh24-Apr-08 2:46 
GeneralUsing VB.NET dll in VB Pin
ritz123424-Apr-08 0:41
ritz123424-Apr-08 0:41 
Hello friends,

1)I've created one VB.NET dll.
2)I've created the .tlb file of this dll to use it in VB 6.0.
3)I am able to add the refrence of this .tlb file in the applicaiton.
But when I want to create the object of the class of this library using new method the library created in VB.NET doens't even appear in the list to create the object.

The code of VB.NET dll is as below.
Imports System<br />
Imports System.Reflection<br />
Imports System.Runtime.InteropServices<br />
<br />
<Assembly: AssemblyKeyFile("mykey.snk")> <br />
<br />
<ComVisible(True)> _<br />
Public Interface IAClass<br />
    Function GetCurrentTime() As String<br />
End Interface<br />
<br />
<ProgId("MyCompany.MyLib.AClass")> _<br />
Public Class AClass<br />
    Implements IAClass<br />
<br />
    Public Function GetCurrentTime() As String Implements IAClass.GetCurrentTime<br />
        Return System.DateTime.Now.ToString()<br />
    End Function<br />
End Class


I've created the .tlb file from this dll.

The code of the VB 6.0 Application is as below.

Dim ob As SampLib.IAClass<br />
Private Sub Command1_Click()<br />
Set ob = CreateObject("SampLib.IAClass")<br />
MsgBox ob.GetCurrentTime<br />
End Sub


Please if anybody can tell what is the reason that doesn't allow me to use the .tlb file in VB.

Thanks in Advance to all of you.

ritz1234

AnswerRe: Using VB.NET dll in VB Pin
Arjun Marwaha24-Apr-08 2:03
Arjun Marwaha24-Apr-08 2:03 
Questiongive an example for delegates in vb.net windows application Pin
vijaylumar23-Apr-08 23:35
vijaylumar23-Apr-08 23:35 
AnswerRe: give an example for delegates in vb.net windows application Pin
Arjun Marwaha24-Apr-08 1:57
Arjun Marwaha24-Apr-08 1:57 
GeneralCopy Data From One listbox to another on button click event Pin
sonia.sardana23-Apr-08 23:34
sonia.sardana23-Apr-08 23:34 
GeneralRe: Copy Data From One listbox to another on button click event Pin
Smithers-Jones23-Apr-08 23:47
Smithers-Jones23-Apr-08 23:47 
GeneralSplitting an image into multiple and Printing on multiple pages (to view image larger) Pin
anu_sam77723-Apr-08 23:32
anu_sam77723-Apr-08 23:32 
GeneralExcel VBA set cell background to "Transparent" (not vbWhite) Pin
devvvy23-Apr-08 22:52
devvvy23-Apr-08 22:52 
GeneralRe: Excel VBA set cell background to "Transparent" (not vbWhite) Pin
Smithers-Jones23-Apr-08 23:30
Smithers-Jones23-Apr-08 23:30 
GeneralThe sqlcommand is currently busy open, fetching Pin
Eunice (VB junior)23-Apr-08 15:25
Eunice (VB junior)23-Apr-08 15:25 
QuestionCrystal Reports deployment Pin
Jodd23-Apr-08 12:19
Jodd23-Apr-08 12:19 
GeneralRe: Crystal Reports deployment Pin
Steven J Jowett23-Apr-08 12:33
Steven J Jowett23-Apr-08 12:33 
GeneralRe: Crystal Reports deployment Pin
Jodd23-Apr-08 13:29
Jodd23-Apr-08 13:29 
GeneralDeveloping applications for BlackBerry Pin
Mr Oizo23-Apr-08 4:50
Mr Oizo23-Apr-08 4:50 
GeneralRe: Developing applications for BlackBerry Pin
Thomas Stockwell23-Apr-08 8:24
professionalThomas Stockwell23-Apr-08 8:24 
QuestionError QueryInterface while trying to use VB6 DLL into VB.NET project Pin
mandrake_223-Apr-08 4:45
mandrake_223-Apr-08 4:45 
Questionsetting a variable for multiple threads Pin
Tom Deketelaere23-Apr-08 4:23
professionalTom Deketelaere23-Apr-08 4:23 
GeneralRe: setting a variable for multiple threads Pin
Luc Pattyn23-Apr-08 11:04
sitebuilderLuc Pattyn23-Apr-08 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.