473,395 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

executing crt functions in immidiate window

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
2 3129
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jay O'Connor | last post by:
Is there a good way to import python files without executing their content? I'm trying some relfection based stuff and I want to be able to import a module dynamically to check it's contents...
29
by: Mic | last post by:
Goal: delay execution of form submit Code (Javascript + JScript ASP): <% Response.Write("<OBJECT ID='IntraLaunch' STYLE='display : none' WIDTH=0 HEIGHT=0...
2
by: Joe Bloggs | last post by:
I have a Windows form application that has a start button, a progress bar and also writes information to the status bar the code is C#. My problem is that when you hit the start button and the...
1
by: Arnaud Diederen | last post by:
Hello everyone, I have a little problem with IE6. Imagine I have a webapp that has a main/root/parent window, in which there is a function (called: executor()) that makes use of the...
1
by: Joe | last post by:
I am trying to get information on controls on my multi form Visual Basic 2005 project. Any time I type such things as "? frmMyForm1.visible" in the immediate window after I pause the program, I...
2
by: cider123 | last post by:
Here's a quick snapshot of the top few lines of the aspx page: <%@ Page Language="C#" MasterPageFile="~/Master1.master" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage"...
5
by: reycri | last post by:
Hi, I need to be able to do this: var func = new Function("var me = <selfRef>; alert(me.params);"); func.params = "This is a test parameter"; window.setTimeout(func, 500); Basically, I...
2
by: SrivalliBapathi | last post by:
Hi, Please help me, if theres a way we can execute DB2 commands directly from the windows cmd prompt window instead of executing those from DB2 CLP window. I need to connect to a DB2 database...
3
by: leehanson | last post by:
I have a timer function that displays to the user the current number of seconds left for the current question. It all works fine, however when the timer is ticking down, and the user starts to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.