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++ / August 2006

Tip: Looking for answers? Try searching our database.

executing crt functions in immidiate window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abubakar - 15 Aug 2006 13:44 GMT
Hi,

While debugging, can I execute functions like strlen() in immediate window?
I tried strlen () on some pointer to char array and it said:

CXX0017: Error: symbol "strlen" not found

Regards,

-ab.
Oleg Starodumov - 15 Aug 2006 15:59 GMT
> While debugging, can I execute functions like strlen() in immediate window?
> I tried strlen () on some pointer to char array and it said:
>
> CXX0017: Error: symbol "strlen" not found

In general, you can execute a function if its type is known to the debugger,
and if the list of function's parameters is not too complicated.

Often you have to specify the module where the function is located,
e.g. if strlen is in msvcr71d.dll, you can use:
{,,msvcr71d.dll}strlen(0x123456)

If the function's type information is not available (then the debugger will usually
display its type as "void" in Watch window if you enter the function's name there),
you can implement a wrapper function whose sole purpose is to call the target function.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]
Abubakar - 16 Aug 2006 06:48 GMT
Ok, cool.

Thanks,

-ab.

> > While debugging, can I execute functions like strlen() in immediate window?
> > I tried strlen () on some pointer to char array and it said:
[quoted text clipped - 15 lines]
> Oleg
> [VC++ MVP http://www.debuginfo.com/]

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.