473,503 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stepping through a vb class or method

JPS
Does anyone know how to add a VB class to a C# project and then
instantiate the Vb object and step through the code?
Can we do tihs with a VB DLL?

Dec 21 '06 #1
5 1433
Hello JPS,

Only using interop, to call your VB code as COM class.
VB class can't be instantiated from C# directly.

To step into your code you need to attach the debugger to your runned VB
COM instance

JDoes anyone know how to add a VB class to a C# project and then
Jinstantiate the Vb object and step through the code?
JCan we do tihs with a VB DLL?
---
WBR,
Michael Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Dec 21 '06 #2
JPS


On Dec 21, 3:27 pm, Michael Nemtsev <nemt...@msn.comwrote:
Hello JPS,
Michael,
How do I attach the debugger to the COM class?

Only using interop, to call your VB code as COM class.
VB class can't be instantiated from C# directly.

To step into your code you need to attach the debugger to your runned VB
COM instance

JDoes anyone know how to add a VB class to a C# project and then
Jinstantiate the Vb object and step through the code?
JCan we do tihs with a VB DLL?
---
WBR,
Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Dec 21 '06 #3
If it is COM then I would suggest you it is easier to write a stub to step
it through your VB 6 code in VB 6 and then Interop with C#.

chanmm

"JPS" <jp*****@yahoo.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
>

On Dec 21, 3:27 pm, Michael Nemtsev <nemt...@msn.comwrote:
>Hello JPS,
Michael,
How do I attach the debugger to the COM class?

>Only using interop, to call your VB code as COM class.
VB class can't be instantiated from C# directly.

To step into your code you need to attach the debugger to your runned VB
COM instance

JDoes anyone know how to add a VB class to a C# project and then
Jinstantiate the Vb object and step through the code?
JCan we do tihs with a VB DLL?
---
WBR,
Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and
we
miss it, but that it is too low and we reach it" (c) Michelangelo
Dec 22 '06 #4
JPS
It is VB.Net
I created the DLL , but I am not sure how to open it and step through
it in C#

On Dec 22, 6:11 am, "Chan Ming Man" <chan...@hotmail.comwrote:
If it is COM then I would suggest you it is easier to write a stub to step
it through your VB 6 code in VB 6 and then Interop with C#.

chanmm

"JPS" <jpsu...@yahoo.comwrote in messagenews:11**********************@42g2000cwt.go oglegroups.com...


On Dec 21, 3:27 pm, Michael Nemtsev <nemt...@msn.comwrote:
Hello JPS,
Michael,
How do I attach the debugger to the COM class?
Only using interop, to call your VB code as COM class.
VB class can't be instantiated from C# directly.
To step into your code you need to attach the debugger to your runned VB
COM instance
JDoes anyone know how to add a VB class to a C# project and then
Jinstantiate the Vb object and step through the code?
JCan we do tihs with a VB DLL?
---
WBR,
Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and
we
miss it, but that it is too low and we reach it" (c) Michelangelo- Hide quoted text -- Show quoted text -
Dec 22 '06 #5
If it is VB.NET, Add it to the solution and add a reference to it from the
Projects tab of the references dialog. This will make it step into the code.

--
Ciaran O''''Donnell
http://wannabedeveloper.spaces.live.com
"JPS" wrote:
It is VB.Net
I created the DLL , but I am not sure how to open it and step through
it in C#

On Dec 22, 6:11 am, "Chan Ming Man" <chan...@hotmail.comwrote:
If it is COM then I would suggest you it is easier to write a stub to step
it through your VB 6 code in VB 6 and then Interop with C#.

chanmm

"JPS" <jpsu...@yahoo.comwrote in messagenews:11**********************@42g2000cwt.go oglegroups.com...


On Dec 21, 3:27 pm, Michael Nemtsev <nemt...@msn.comwrote:
>Hello JPS,
Michael,
How do I attach the debugger to the COM class?
>Only using interop, to call your VB code as COM class.
>VB class can't be instantiated from C# directly.
>To step into your code you need to attach the debugger to your runned VB
>COM instance
>JDoes anyone know how to add a VB class to a C# project and then
>Jinstantiate the Vb object and step through the code?
>JCan we do tihs with a VB DLL?
>---
>WBR,
>Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour
>"The greatest danger for most of us is not that our aim is too high and
>we
>miss it, but that it is too low and we reach it" (c) Michelangelo- Hide quoted text -- Show quoted text -

Dec 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1525
by: Fernando Rodríguez | last post by:
Hi, I was trying to step through a first attemp of multithreaded script (see below), with PythonWin, but I'm gettign a very strange error: ...
3
278
by: c# newbie | last post by:
When stepping through code, to find where an error is thrown, the problem is that I have to step threw the statement that causes the error, and if it's in a class that's instantiated from the main...
1
1634
by: | ov | last post by:
Hi, My application includes a class library which has both managed C++ and unmanaged C++ code. The unmanaged C++ code includes only one class with both virtual methods and non-virtual methods....
5
368
by: pinaki_m77 | last post by:
Hi, I am trying to debug a C++ program using Microsoft VC++ IDE. The program loads a dynamic link library (dll) and later makes calls to functions inside this dll. I want to step inside the code of...
1
988
by: Cheryl | last post by:
I created a class in C# and I would like to step through the class to make sure it works correctly. How can I step thorough this class to make sure that everything is working correctly?
25
3979
by: David C | last post by:
I posted this question, and from the replies, I get the impression that I worded my posting very poorly, so let me try this again. While debugging and stepping through this foreach loop ...
5
3067
by: scl | last post by:
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...
7
1616
by: Lyn | last post by:
Is there a solution to this problem? While stepping through code (F8) it would sometimes be helpful to observe changes occurring on the affected form in the Access window. However, the current...
1
966
by: lothar.behrens | last post by:
Hi, I have a base class that defines a MustOverride method. In a derived implementation class I am not able to set a break point nor stepping into by a call from the base class. What would...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.