2
votes

Can we debug a VB6 application that is calling Fortran dll?

I have searched a question like mine(Debugging VB6 project that calls a .Net(C#) dll). According to Hans Passant's answer,I tried to "Select the 'Start external program' option", but I cannot find this option(fig. 1).

I use Microsoft Visual Studio 2010 and Intel Parallel Studio XE 2011.

What should I do?

enter image description here

1
You cannot debug VB6 with VS2010. VS2010 only has VB.net. You need VS6 or VS1998 to debug VB6.cup
Thanks! Consequently, it seems that I have to debug the DLL with the VB.net or C application in VS2010.T X
In that case, if you have the .pdbs for the dll, copy them to the same directory, then startup the program and from VS,Debug/Attach to the program. You can then navigate to the relevant fortran code and set a breakpoint. Then try invoking it from the VB6 GUI and see if you hit the breakpoint.cup
You can debug VB6 in visual studio 2010. Just build it with symbols (build a PDB file). And I don't read Chinese but I think the "command" option in your screenshot is how you choose an exe to run. So that's the equivalent of external program.MarkJ
The screenshot does not look like a VB6 project. I don't really understand what you are trying to do.StayOnTarget

1 Answers

-2
votes

You need to upgrade your VB6 project to VB 2010 based on following MSDN document.

https://msdn.microsoft.com/en-us/library/bszew91f(v=vs.100).aspx

And then please reference cup's suggestion, add Fortran.pdb file to the same path with Fortran.dll and debug it use VS2010.