PC Review


Reply
Thread Tools Rate Thread

Stepping between .Net IDE into a VB6 dll call

 
 
scl
Guest
Posts: n/a
 
      27th Apr 2006
I have an application with a .Net front end that makes calls into a series
of VB6 dll's via COm InterOpt. Although everything works quite well, the
main issue that I have is regarding the overall debugging workflow.
Ideally, I would like to configure my IDE's such that when I am stepping
through my .Net code that makes a call to a VB6 dll method, I am able to
step into the VB6 IDE to continue the debugging process. Currently, I
cannot step into the VB6 call: it simple is executed in a single big step.

I have recently found out that the reverse situation is true: one can be in
the VB6 IDE and when a call is made to a .Net dll, we can step into the .Net
IDE for further debugging. However, it should be noted that upon exit from
the .Net IDE, the VB6 IDE is terminated. Although this is far from ideal,
it does still offer some useful capabilities.

Although COM InterOpt is nice, I think that seemless debugging between bothe
IDE's is required to make the development task efficient. At the very
least, the .Net IDE should be able to include the capability to debug VB6
code directly. This issue is the primary reason I am reluctant to mix both
plaforms. For those with a very large VB6 code base, I cannot imagine how
else they would want to proceed in an efficient manner.

Any ideas or comments?


 
Reply With Quote
 
 
 
 
Ken Halter
Guest
Posts: n/a
 
      27th Apr 2006
"scl" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have an application with a .Net front end that makes calls into a series
>of VB6 dll's via COm InterOpt. Although everything works quite well, the
>main issue that I have is regarding the overall debugging workflow.
>Ideally, I would like to configure my IDE's such that when I am stepping
>through my .Net code that makes a call to a VB6 dll method, I am able to
>step into the VB6 IDE to continue the debugging process. Currently, I
>cannot step into the VB6 call: it simple is executed in a single big step.


I've never tried it (no dotNet projects) but, have you tried loading that
VB6 DLL up in the IDE and setting the debug options (Project/<Your Project>
Properties/Debugging tab) to 'Wait for components to be created'? I have no
idea what effect interop has on that environment. It should be worth a try
though.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..


 
Reply With Quote
 
Ken Halter
Guest
Posts: n/a
 
      27th Apr 2006
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:%23M%(E-Mail Removed)...
>
> I've never tried it (no dotNet projects) but, have you tried loading that
> VB6 DLL up in the IDE and setting the debug options (Project/<Your
> Project> Properties/Debugging tab) to 'Wait for components to be created'?
> I have no idea what effect interop has on that environment. It should be
> worth a try though.


Forgot to mention... but you probably already know...

Of course, following the steps above, you'd have to tell the IDE to start
running the DLL... and it would sit and stare at you until you run an app
that requires the DLL.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      28th Apr 2006
"scl" <(E-Mail Removed)> schrieb:
> Although COM InterOpt is nice, I think that seemless debugging between
> bothe IDE's is required to make the development task efficient. At the
> very least, the .Net IDE should be able to include the capability to debug
> VB6 code directly. This issue is the primary reason I am reluctant to mix
> both plaforms. For those with a very large VB6 code base, I cannot
> imagine how else they would want to proceed in an efficient manner.


You are not the only one asking for this functionality. Check out the
second link in my signature (though it won't solve the problem).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
scl
Guest
Posts: n/a
 
      28th Apr 2006
Ken,

Thanks for the feedback. I also received a similar suggestion by Scott
Swigard. In principal, this seems to work in some cases. However, for a
number of my dll's, I am getting various automation errors in the Vb6 dll's
when they are running. Everything works fine (eg the com interopt) when the
dll's are not running. It's proving to be difficult to pinpoint the
underlying issue. All my dll's are compiled with binary compatibility and
they work fine in normal usage. Problems are occuring when running one of
the dll's for debugging purposes. Pretty frustrating!



"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:(E-Mail Removed)...
> "Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
> news:%23M%(E-Mail Removed)...
>>
>> I've never tried it (no dotNet projects) but, have you tried loading that
>> VB6 DLL up in the IDE and setting the debug options (Project/<Your
>> Project> Properties/Debugging tab) to 'Wait for components to be
>> created'? I have no idea what effect interop has on that environment. It
>> should be worth a try though.

>
> Forgot to mention... but you probably already know...
>
> Of course, following the steps above, you'd have to tell the IDE to start
> running the DLL... and it would sit and stare at you until you run an app
> that requires the DLL.
>
> --
> Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
> Please keep all discussions in the groups..
>



 
Reply With Quote
 
scl
Guest
Posts: n/a
 
      28th Apr 2006
I agree.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stepping into vc++ dll from c# =?Utf-8?B?bWs=?= Microsoft VC .NET 2 10th Sep 2007 05:20 PM
Stepping (CPU)? E11 Computer Hardware 3 9th Nov 2005 03:06 PM
Stepping Through a .cs in C# Cheryl Microsoft C# .NET 1 12th May 2004 09:12 PM
Stepping into Kevin Jackson Microsoft VB .NET 4 26th Feb 2004 07:37 AM
Stepping up Smith, Dennis P. Windows XP MovieMaker 2 18th Oct 2003 12:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:06 PM.