Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using C# dll in VB? Pin
Nick Parker10-Dec-02 4:20
protectorNick Parker10-Dec-02 4:20 
AnswerRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 21:48
Rickard Andersson209-Dec-02 21:48 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 22:37
Kannan Kalyanaraman9-Dec-02 22:37 
GeneralRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 23:08
Rickard Andersson209-Dec-02 23:08 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 23:13
Kannan Kalyanaraman9-Dec-02 23:13 
GeneralRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 23:50
Rickard Andersson209-Dec-02 23:50 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman10-Dec-02 0:00
Kannan Kalyanaraman10-Dec-02 0:00 
AnswerRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 22:44
Kannan Kalyanaraman9-Dec-02 22:44 
hi $iva,

You cannot add reference to the dll (assembly) you have created in .net 'cause its not a proper COM dll, if you have a closer look, you can see that .net assembly doesnt have any COM specific mechanism to locate the particular DLL (there is no entry in the registry pointing to the location of the dll or does the other application know how to create an instance).

So, to call .net assembly from VB6 you need to do couple of things.
Create public interfaces and implement those interfaces in a class. Only public methods are visible to COM.
Run regasm tools against this assembly to make sure that other COM aware clients know how to create this COMponent and call those methods.
Refer msdn on Regasm and COM Interop.

Hope this helps.
Cheers
Kannan



GeneralQuestion on SocketOptionName.ReceiveTimeout Pin
yccheok9-Dec-02 17:50
yccheok9-Dec-02 17:50 
GeneralRe: Question on SocketOptionName.ReceiveTimeout Pin
grv57513-Dec-02 4:07
grv57513-Dec-02 4:07 
GeneralRunning Application In Another Process Without Showing Console Window Pin
yccheok9-Dec-02 17:49
yccheok9-Dec-02 17:49 
GeneralRe: Running Application In Another Process Without Showing Console Window Pin
Kannan Kalyanaraman9-Dec-02 22:47
Kannan Kalyanaraman9-Dec-02 22:47 
GeneralRe: Running Application In Another Process Without Showing Console Window Pin
Richard Deeming10-Dec-02 0:03
mveRichard Deeming10-Dec-02 0:03 
GeneralProblem with arraylist assignment Pin
djkno39-Dec-02 13:59
djkno39-Dec-02 13:59 
GeneralRe: Problem with arraylist assignment Pin
Rob Graham9-Dec-02 14:58
Rob Graham9-Dec-02 14:58 
GeneralRe: Problem with arraylist assignment Pin
djkno39-Dec-02 21:18
djkno39-Dec-02 21:18 
GeneralRe: Problem with arraylist assignment Pin
Burt Harris9-Dec-02 21:42
Burt Harris9-Dec-02 21:42 
GeneralRe: Problem with arraylist assignment Pin
James T. Johnson10-Dec-02 0:58
James T. Johnson10-Dec-02 0:58 
GeneralRe: Problem with arraylist assignment Pin
Richard Deeming10-Dec-02 0:13
mveRichard Deeming10-Dec-02 0:13 
GeneralRe: Problem with arraylist assignment Pin
djkno310-Dec-02 6:11
djkno310-Dec-02 6:11 
Generalgoto in C# Pin
afronaut9-Dec-02 11:05
afronaut9-Dec-02 11:05 
GeneralRe: goto in C# Pin
leppie9-Dec-02 11:30
leppie9-Dec-02 11:30 
GeneralRe: goto in C# Pin
Not Active9-Dec-02 13:14
mentorNot Active9-Dec-02 13:14 
GeneralRe: goto in C# Pin
ryancrawcour9-Dec-02 20:06
ryancrawcour9-Dec-02 20:06 
GeneralRe: goto in C# Pin
Christian Graus9-Dec-02 21:59
protectorChristian Graus9-Dec-02 21: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.