473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Debug VC++ dll?

Bob
Hi,
I am a vb.net programmer who has written a simple VC++ dll that I call from
my vb program.
How do you get to step into the VC code when debugging?
I have tried putting the compiled dll into the output directory of the vb
project.
I have tried setting the attach attribute under C++ project properties
debugging.
I have made sure there is only one copy of the dll when running
Alas no luck.
Is there a general series of steps / checks that I should do to get this
working?

thanks
Bob

Nov 17 '05 #1
4 1598
Bob wrote:
Hi,
I am a vb.net programmer who has written a simple VC++ dll that I call from
my vb program.
How do you get to step into the VC code when debugging?
I have tried putting the compiled dll into the output directory of the vb
project.
I have tried setting the attach attribute under C++ project properties
debugging.
I have made sure there is only one copy of the dll when running
Alas no luck.
Is there a general series of steps / checks that I should do to get this
working?

thanks
Bob


try putting the vb and the dll projects under the same solution
Nov 17 '05 #2
Hi Bob!
I am a vb.net programmer who has written a simple VC++ dll that I call from
my vb program.
How do you get to step into the VC code when debugging?


1. Open the DLL-Project in VC++.
2. Put an break-point in the function you want to debug
3. Select the vb(6).exe-App in the debugging settings.
4. Start the DLL-Project => not vb(6) will fire up
5. Open your VB-Project inside the vb-IDE
6. Start your VB-Project

Now when you go into the VC++ function, your first IDE will stop at the
breakpoint.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #3
I am a vb.net programmer who has written a simple VC++ dll that I call from
my vb program.
How do you get to step into the VC code when debugging?


Enable unmanaged debugging:

Project properties | Configuration Properties | Debugging | Unmanaged code debugging

Regards,
Oleg
[VC++ MVP]

Nov 17 '05 #4
Bob
Hi ,
Thanks to you all for contributing.
The solution turned out to be a variation on Oleg's reply.
Re Marcel's reply : the projects are already in the one solution.
The extra pieces of the puzzle are:
1) Point the C++ Project working directory to the VB Project (exe) output
directory c:\blah\bin(Proj,Config, Debug,Working)
2) Set Attach to yes (same path as above)
3) Set unManaged code debugging in the VB project as per Oleg's reply.
regards
bob
"Bob" <bo*@nowhere.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Hi,
I am a vb.net programmer who has written a simple VC++ dll that I call from my vb program.
How do you get to step into the VC code when debugging?
I have tried putting the compiled dll into the output directory of the vb
project.
I have tried setting the attach attribute under C++ project properties
debugging.
I have made sure there is only one copy of the dll when running
Alas no luck.
Is there a general series of steps / checks that I should do to get this
working?

thanks
Bob

Nov 17 '05 #5

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

Similar topics

2
by: Christian Graf | last post by:
Hi, (sorry if this post might occur two times, but I can't find my first one from yesterday evening in this group) I have a bigger VC++6.0 project which is successfully compiled into a DLL. I...
5
by: Grant Schenck | last post by:
Hello, I built an MTA which is used from an ASA and ASP pages. The MTA was developed in VC++ 6.0. How would I go about debugging into the C++ code? Thanks, Grant Schenck
2
by: abcd | last post by:
I have an asp pages which uses ActibeX dll and Exe written in in VB and VC++. I want to debug the components from asp page. When the asp page is run I should be able to get the breakpoint in my VB...
0
by: Vijay Chegu | last post by:
Hi I am using vc++ .net 2003 ide with Feb 2003 platform sdk to build 64bit application. I want to use vc++ to debug the app on 64bit machine. As we do not have 64bit VC++, I would like to...
2
by: | last post by:
Hi, I'm experiencing a bizar problem with MS VC++, and just can't figure out what's going on. I Build a solution that compiles pretty well, it works good when I launch it in the Visual C++ Editor...
2
by: Scott Yost | last post by:
I reference a .NET DLL to import some of my custom types. I can build that DLL in debug or release mode, but I usually keep the debug one built so I can debug it. When I want to link to the release...
1
by: spiff | last post by:
We are migrating from VC++ 6 to VC++ 2003. It is a plain, unmanaged application with both C and C++ source. When running the debug build, even outside the debugger, the memory allocation/deallocation...
1
by: John | last post by:
I have a VB6 ActiveX dll and it's called from a VC++ app. How can I debug the dll through the app? Please help. Thanks.
5
by: B. | last post by:
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in...
4
by: nmrcarl | last post by:
I'm trying to upgrade a large project from VS 6.0 to VS 2005. After fixing a lot of things that changed (mostly sloppy coding in the original project that VS2005 didn't allow), I got the release...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.