Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > stepping inside a DLL

Reply
Thread Tools

stepping inside a DLL

 
 
pinaki_m77@yahoo.com
Guest
Posts: n/a
 
      07-30-2005
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 this dll.
Is that possible to do? Because currently what is happening is, even if
I try to step inside the function in the dll (by F11 key), it is
stepping over the whole function (like F10 does).

How can I step inside the dll code? Am I doing something incorrectly
now? Please help.

Thank you.

 
Reply With Quote
 
 
 
 
benben
Guest
Posts: n/a
 
      07-30-2005
> 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 this dll.
> Is that possible to do? Because currently what is happening is, even if
> I try to step inside the function in the dll (by F11 key), it is
> stepping over the whole function (like F10 does).
>
> How can I step inside the dll code? Am I doing something incorrectly
> now? Please help.
>
> Thank you.
>


Suggestion:
1. Make sure you use debug build for the DLL
2. Set a breakpoint in the DLL function you would like to step

Better suggestion:
Post it to microsoft.public.vc.language or other vc specific newsgroups and
get experts to help.

Ben



 
Reply With Quote
 
 
 
 
Ken Wilson
Guest
Posts: n/a
 
      07-30-2005
On 29 Jul 2005 23:48:28 -0700, did courageously
avow:

>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 this dll.
>Is that possible to do? Because currently what is happening is, even if
>I try to step inside the function in the dll (by F11 key), it is
>stepping over the whole function (like F10 does).
>
>How can I step inside the dll code? Am I doing something incorrectly
>now? Please help.
>
>Thank you.


Unless it is a debug version I'm not so sure you can step inside it.
Even then, it may require you to have source available so that it can
step through the code as well.

You will probably get jumped once or twice about this not being the
appropriate forum. It is intended for pure C++ and people do not
usually answer or discuss questions that are compiler or OS specific
of which you are guilty of both.

You may find a more suitable answer, or more correct even, by checking
out some of the Microsoft specific newsgroups.

Ken Wilson
"Coding, coding, over the bounding main()"
 
Reply With Quote
 
adbarnet
Guest
Posts: n/a
 
      07-31-2005
In the ms IDE debug options you can specify "Load Additional Dll" - as long
as you have the debug symbols available with the binary it will let you step
in as usual - search the msvc help on loading additional dll's

<> wrote in message
news: oups.com...
> 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 this dll.
> Is that possible to do? Because currently what is happening is, even if
> I try to step inside the function in the dll (by F11 key), it is
> stepping over the whole function (like F10 does).
>
> How can I step inside the dll code? Am I doing something incorrectly
> now? Please help.
>
> Thank you.
>




Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
stepping inside a DLL pinaki_m77@yahoo.com C Programming 5 08-01-2005 06:21 PM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57