Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Debug VC++ dll?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 23 Jun 2005 05:20 GMT
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
Marcel Serour - 23 Jun 2005 07:14 GMT
> Hi,
> I am a vb.net programmer who has written a simple VC++ dll that I call from
[quoted text clipped - 11 lines]
> thanks
> Bob

try putting the vb and the dll projects under the same solution
Jochen Kalmbach [MVP] - 23 Jun 2005 07:23 GMT
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.

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

Oleg Starodumov - 23 Jun 2005 08:30 GMT
> 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]
Bob - 24 Jun 2005 00:36 GMT
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
> Hi,
> I am a vb.net programmer who has written a simple VC++ dll that I call from
[quoted text clipped - 11 lines]
> thanks
> Bob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.