Debugging a VB6 project that calls DLL.Net (C #)

Within a few hours I came upon this problem. Hope someone had a similar problem.

We developed the .Net prototype DLL (C #) using VS2010 and would like to be able to call this DLL both in C # applications and in VB6 application.

My question is:

Is it possible to debug a VB6 application that calls DLL.Net? I get the error "Automation error. The system cannot find the specified file."

The error message suggests that something is missing for my VB6 application to find DLL.Net.

I know that if a VB6 application was compiled and .exe created, VB6 will successfully call the dll.Net functionality when using .exe

However, it is important that we can debug our VB6 application. Unfortunately, debugging does not allow you to go through a line of code that creates an instance of an .Net DLL class object. I can not do it.

NOTE. I looked through the MSDN forums and documentation, and basically I found a solution for calling VB6 dll in .NET; which, unfortunately, is the opposite of what we need to do.

NOTE. I already registered the compiled .Net assembly (C #) and referenced it in the VB6 project.

However, I found these two pages that we seemed to need, but it is a solution for calling DLL.NET (C #) created using VS2005. This does not seem to work when the DLL.NET (C #) was generated using VS2010.

site1 site2

If someone can give any suggestions or direct me somewhere, I can get one, it will be great.

thank

@HansPassant, . VB6, #.NET, DLL.NET "regasm" "gacutil", VB6 .

+5
3

, VB6 , , #.

#, , . Project + Properties, Debug. " " VB6 IDE. c:\program files\microsoft visual studio\vb98\vb6.exe. , .

F5, VB6 ide . vb6. , .vbp , .

vb6, . [ComVisible] #, # . , vb6 . . , vb6 #, , .

+9

, .NET VB6 .

  • VB6 ( "" " " ), " , " " ". VB6. VB6.
  • " "... "" "", VB6.
  • VS Solution Explorer File... , VB6, . VB6, , VS, VB6.
  • , .NET . .
  • #, . .NET - .
  • VS, VB6 # .
+3

() VB6 #. .

VB6 IDE # DLL VB6.

DLL VB6 Visual Studio VB6 .

, , , .

0

All Articles