By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,819 Members | 1,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,819 IT Pros & Developers. It's quick & easy.

executing crt functions in immidiate window

P: n/a
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.

Aug 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/]



Aug 15 '06 #2

P: n/a
Ok, cool.

Thanks,

-ab.

"Oleg Starodumov" <com-dot-debuginfo-at-olegwrote in message
news:#r**************@TK2MSFTNGP03.phx.gbl...
>
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/]



Aug 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.