Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging DLLs... 1

Status
Not open for further replies.

Milby7

Programmer
Dec 5, 2003
67
GB
Hi,

Does anyone know if it's possible to debug a c/c++ function library in a similar way to how you debug com libraries in vb6?? i.e. leave your dll in 'debug mode' in the IDE and step through the code when any calls are made to it from (already built) exe's.

I've been trying it by entering the executable in the projects debug details and running it, but it just loads, & immediately unloads the exe because the dll isn't loaded (or called) straight away!!

Thanks!
 
ok. no worries. i wasn't originally running it after copying the debug dll, just tried that because i thought that's what you meant! [sadeyes]

i really don't think i'm gonna have any joy with this one, so am simply dumping diagnostics to a file.

Never mind!

Thanks again!!
 
you can stop the dll execution with a message box, attach the debugger to the process and step through... To process you should attach a running instance of VisualStuidio where your dll project is open already. You can attach debugger runtime to process from
(ctrl+alt+delete) TaskManager->RightClick->DebugProcess

Ion Filipski
1c.bmp
 
That's it!!!!! I've done it!!!!

Thanks!!!!! [2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top