How to debug vs 2008 C # express dll which is called by vb6 / vba application?

I have a C # dll that is written to work as a wrapper to capture data from a data source and transfer it to a vpa / powerpoint ppa application. I don't have much experience with vba, so I simulate this with vb6, which I know a little more about.

I'm having enough trouble trying to understand the syntax, and that is not for the complicated work of com and ccw. so I'm looking for a debugging method, why the function does not return any data to me, and, if possible, through one .net dll line wire when the vb6 application calls it.

Initially, I was thinking of introducing a function inside DLL.net that will be written to an external file, but this does not seem to work, and I don't know why.

I did some search queries and found out that there is an attachment to a process that may be useful for my case, but this function is only available in vs studio full versio .

so I hope that there are other tools that I can use that can allow me to properly debug what happens between the vb6 / vba application and DLL.net.

thanks.

+3
source share
4 answers

Joining a process too badly is not available to you because it is the way to go.

Well placed Debug.Assert(false);in .net dll is one way to make the debugger display.

Debugger.Break();, , .

Debug Debugger System.Diagnostics.

+7
  • Visual Studio #.
  • .
  • " " VB.exe( , C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE.
  • : .vbp VB6 .

# (Debug- > Start Debugging F5), VB6. #. VB6, VS2005/2008. , #.

+3

<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\NUnit-Net-2.0 2.2.8\bin\nunit-gui.exe</StartProgram>

.csproj # Express 2008, PropertyGroup, ( ).

+2

Visual ++ Express Edition Visual # Express Edition. , " "

0

Source: https://habr.com/ru/post/1715385/


All Articles