Click here to Skip to main content
15,902,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalplease! i badly need help... Pin
sakhura_3123-Mar-08 22:56
sakhura_3123-Mar-08 22:56 
GeneralRe: please! i badly need help... Pin
Dave Kreskowiak24-Mar-08 3:55
mveDave Kreskowiak24-Mar-08 3:55 
GeneralRe: please! i badly need help... Pin
Christian Graus24-Mar-08 10:26
protectorChristian Graus24-Mar-08 10:26 
QuestionDeploy Crystal Report in Remote Server Pin
Abdul Rahman Hamidy23-Mar-08 22:35
Abdul Rahman Hamidy23-Mar-08 22:35 
GeneralRe: Deploy Crystal Report in Remote Server Pin
Dave Kreskowiak24-Mar-08 4:12
mveDave Kreskowiak24-Mar-08 4:12 
GeneralRe: Deploy Crystal Report in Remote Server Pin
Kschuler24-Mar-08 4:51
Kschuler24-Mar-08 4:51 
QuestionCalling .NET component from VB6. Pin
SPanicker*23-Mar-08 21:57
SPanicker*23-Mar-08 21:57 
GeneralRe: Calling .NET component from VB6. Pin
Dave Kreskowiak24-Mar-08 4:10
mveDave Kreskowiak24-Mar-08 4:10 
SPanicker* wrote:
Private Declare Function method Lib "C:\Documents and Settings\CSfiles\interop\interop\bin\Debug\interop.dll" Alias "interopdll" (ByVal X As Integer, ByVal X As Integer)

Private Sub Command1_Click()


You cannot call a .NET dll from VB6 like this. The .NET compilers don't generate the exports needed for VB6 to call library functions like this.

You'll have to partially scrap the VB6 code and rewrite it along with rewriting the C# .DLL.

The .DLL has to be rewritten so that it's functionality it exposed through COM, if it's not already. Then you can add a reference to the COM-registered .DLL in your VB6 project and call the classes and methods through the COM interface.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Calling .NET component from VB6. Pin
SPanicker*24-Mar-08 4:38
SPanicker*24-Mar-08 4:38 
GeneralRe: Calling .NET component from VB6. Pin
Dave Kreskowiak26-Mar-08 13:23
mveDave Kreskowiak26-Mar-08 13:23 
GeneralPopup Message Box in Windows Service Pin
vijay_8323-Mar-08 20:15
vijay_8323-Mar-08 20:15 
GeneralRe: Popup Message Box in Windows Service Pin
Dave Kreskowiak24-Mar-08 4:07
mveDave Kreskowiak24-Mar-08 4:07 
QuestionAssemble captured image packets and display Pin
Dan Worthington23-Mar-08 11:12
Dan Worthington23-Mar-08 11:12 
GeneralRe: Assemble captured image packets and display Pin
A Wong24-Mar-08 7:06
A Wong24-Mar-08 7:06 
Generalplease i need real help ( iam tiered from it) Pin
asha_s23-Mar-08 8:54
asha_s23-Mar-08 8:54 
GeneralRe: please i need real help ( iam tiered from it) Pin
Christian Graus23-Mar-08 11:27
protectorChristian Graus23-Mar-08 11:27 
GeneralRe: please i need real help ( iam tiered from it) Pin
asha_s24-Mar-08 0:09
asha_s24-Mar-08 0:09 
GeneralRe: please i need real help ( iam tiered from it) Pin
Dave Kreskowiak24-Mar-08 4:05
mveDave Kreskowiak24-Mar-08 4:05 
GeneralRe: please i need real help ( iam tiered from it) Pin
asha_s24-Mar-08 7:40
asha_s24-Mar-08 7:40 
GeneralRe: please i need real help ( iam tiered from it) Pin
Dave Kreskowiak26-Mar-08 6:47
mveDave Kreskowiak26-Mar-08 6:47 
GeneralRe: please i need real help ( iam tiered from it) Pin
asha_s26-Mar-08 7:18
asha_s26-Mar-08 7:18 
GeneralRe: please i need real help ( iam tiered from it) Pin
Dave Kreskowiak26-Mar-08 7:20
mveDave Kreskowiak26-Mar-08 7:20 
GeneralHelp on a program Pin
antlex23-Mar-08 6:26
antlex23-Mar-08 6:26 
GeneralRe: Help on a program Pin
pmarfleet23-Mar-08 7:11
pmarfleet23-Mar-08 7:11 
GeneralRe: Help on a program Pin
Christian Graus23-Mar-08 11:36
protectorChristian Graus23-Mar-08 11:36 

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.