Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Platform/API C++
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2007, 10:22 AM   #1 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 68
complete is on a distinguished road
Attaching a DLL

I have a C++ program I am debugging. It uses a DLL. I have the source code for the DLL. Now, suppose I want to debug and step through the DLL. How do I attach this to my current project?
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Old 10-05-2007, 12:27 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
In which compiler/debugger?
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 10-05-2007, 01:29 PM   #3 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 68
complete is on a distinguished road
Quote:
Originally Posted by DJMaze View Post
In which compiler/debugger?
In the debugger, in the IDE.
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Old 10-06-2007, 03:54 AM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Well in Borland C++ it is only possible if you compiled the application staticaly using the sources.
Just debugging a DLL is much harder since you must compile and run the DLL itself by hooking the compile to a process.

There's also a way to debug the application and the DLL by putting both sources inside a project and debug the project as a whole.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 10-06-2007, 11:13 AM   #5 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 68
complete is on a distinguished road
Thanks. I got it fixed.

It turns out that all I needed was a compiled debug version of the DLL along with a PDB file.
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DLL Help Malachi MS Technologies ( ASP, VB, C#, .NET ) 0 05-03-2007 02:09 AM
How do I declare a string and pass it from a Visual Basic GUI to a C++ DLL? complete MS Technologies ( ASP, VB, C#, .NET ) 0 01-15-2006 09:26 AM
how to create dll files? ashok rajagopal Platform/API C++ 1 10-25-2005 11:26 PM
C#: How do I pass in a object array to a C Dll using Marshal? ace MS Technologies ( ASP, VB, C#, .NET ) 0 06-20-2005 11:04 AM
dll authentication Eyelfixit Windows 18 07-08-2003 06:54 PM


All times are GMT -8. The time now is 09:44 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle