Click here to Skip to main content
16,010,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCreate object of .dll in vb6 and Use the public functions of .dll [modified] Pin
karthickmani6325-Feb-10 18:57
karthickmani6325-Feb-10 18:57 
AnswerRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Richard MacCutchan25-Feb-10 22:18
mveRichard MacCutchan25-Feb-10 22:18 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Steven J Jowett25-Feb-10 22:56
Steven J Jowett25-Feb-10 22:56 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Richard MacCutchan25-Feb-10 23:06
mveRichard MacCutchan25-Feb-10 23:06 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
karthickmani6325-Feb-10 23:28
karthickmani6325-Feb-10 23:28 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Richard MacCutchan26-Feb-10 0:05
mveRichard MacCutchan26-Feb-10 0:05 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
karthickmani6326-Feb-10 0:30
karthickmani6326-Feb-10 0:30 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Dave Kreskowiak26-Feb-10 1:40
mveDave Kreskowiak26-Feb-10 1:40 
Your .DLL has to be written so that it is COM exposed. Without that, you cannot use it in your VB6 app.

You've written the apps backwards. Since the .NET .DLL code can be easily examined using .NET Reflector, you just made the most critical part of your licensing code easily readable. It should have been written in something than compiles to native code instead of managed code.

In any case, you have the reference to the .TLB file in your project. Then you just import it's namespace at the top of the code that's going to use the COM objects in it. Then it's just a matter of declaring an instance like any other object.
Dim x As New MyComClass

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll [modified] Pin
karthickmani6328-Feb-10 22:06
karthickmani6328-Feb-10 22:06 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Dave Kreskowiak1-Mar-10 1:49
mveDave Kreskowiak1-Mar-10 1:49 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll [modified] Pin
karthickmani631-Mar-10 17:31
karthickmani631-Mar-10 17:31 
GeneralRe: Create object of .dll in vb6 and Use the public functions of .dll Pin
Dave Kreskowiak2-Mar-10 1:41
mveDave Kreskowiak2-Mar-10 1:41 
QuestionVisual Studio 2010 Pin
programmervb.netc++25-Feb-10 10:21
programmervb.netc++25-Feb-10 10:21 
AnswerRe: Visual Studio 2010 Pin
The Man from U.N.C.L.E.25-Feb-10 22:39
The Man from U.N.C.L.E.25-Feb-10 22:39 
QuestionBlank Mail ASP Pin
for120625-Feb-10 1:25
for120625-Feb-10 1:25 
AnswerRe: Blank Mail ASP Pin
TheComputerMan25-Feb-10 1:33
TheComputerMan25-Feb-10 1:33 
QuestionSilverlight for Windows Application Forms...? VB.Net 2008 Pin
Paramu197324-Feb-10 23:15
Paramu197324-Feb-10 23:15 
AnswerRe: Silverlight for Windows Application Forms...? VB.Net 2008 Pin
Dave Kreskowiak25-Feb-10 1:52
mveDave Kreskowiak25-Feb-10 1:52 
QuestionWorking mdb access with vb.net - won't update [modified] - RESOLVED Pin
C#Coudou24-Feb-10 20:12
C#Coudou24-Feb-10 20:12 
AnswerRe: Working mdb access with vb.net - won't update Pin
Wayne Gaylard24-Feb-10 21:23
professionalWayne Gaylard24-Feb-10 21:23 
GeneralRe: Working mdb access with vb.net - won't update Pin
C#Coudou24-Feb-10 21:43
C#Coudou24-Feb-10 21:43 
AnswerRe: Working mdb access with vb.net - won't update Pin
Dave Kreskowiak25-Feb-10 1:49
mveDave Kreskowiak25-Feb-10 1:49 
GeneralRe: Working mdb access with vb.net - won't update Pin
C#Coudou25-Feb-10 12:54
C#Coudou25-Feb-10 12:54 
GeneralRe: Working mdb access with vb.net - won't update Pin
Dave Kreskowiak25-Feb-10 13:52
mveDave Kreskowiak25-Feb-10 13:52 
GeneralRe: Working mdb access with vb.net - won't update Pin
C#Coudou25-Feb-10 14:59
C#Coudou25-Feb-10 14:59 

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.