473,414 Members | 1,567 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,414 software developers and data experts.

Visual Studio activating Line #s

Hi

How can I activate Line #s on Visual Studio 6 pls?

Thanks

Nov 7 '06 #1
6 1351
2005 wrote:
Hi

How can I activate Line #s on Visual Studio 6 pls?
By asking in a Visual Studio group?
--
Ian Collins.
Nov 7 '06 #2
2005 said:
Hi

How can I activate Line #s
C provides the __LINE__ macro for this purpose. For example:

#include <stdio.h>

int main(void)
{
printf("This is line %d of the source file.\n", __LINE__);

return 0;
}

The output of this program on my system is:

This is line 5 of the source file.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 7 '06 #3
How can I activate Line #s on Visual Studio 6 pls?
>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Michael

Nov 7 '06 #4
"Michael" <mc******@aol.comwrites:
>How can I activate Line #s on Visual Studio 6 pls?
>>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.
Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 7 '06 #5
On Tue, 07 Nov 2006 09:33:40 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.orgwrote:
>"Michael" <mc******@aol.comwrites:
>>How can I activate Line #s on Visual Studio 6 pls?
>>>From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.
Actually, he didn't answer the question. He redirected the user to a
more appropriate place.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Nov 7 '06 #6
Mark McIntyre <ma**********@spamcop.netwrites:
On Tue, 07 Nov 2006 09:33:40 GMT, in comp.lang.c , Keith Thompson
<ks***@mib.orgwrote:
>>"Michael" <mc******@aol.comwrites:
>>>How can I activate Line #s on Visual Studio 6 pls?

From the menu, choose Help, and type in "line number." It explains how
to do it quite succinctly.

Answering off-topic questions is not helpful. This is not the place
to ask about Visual Studio.

Actually, he didn't answer the question. He redirected the user to a
more appropriate place.
Hmm. I see your point.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
5
by: Daniele | last post by:
Hi, how is it possible to create a project with a specific template, compile it and close it? All with a c# script. Thanks, Daniele
11
by: Larry Bird | last post by:
I'm attempting to build my first VC++ .net project and I'm unable to get a clean compile. Please view code below: // This is the main project file for VC++ application project // generated...
16
by: Nathan Sokalski | last post by:
I have Visual Studio .NET and SQL Server Desktop Engine on my computer. I have created an empty database using Visual Studio .NET's Server Explorer. However, I am having trouble connecting to the...
8
by: Will Chamberlain | last post by:
I came across a rather interesting article this morning and thought I'd share. We all know that Visual Studio is a great IDE, but I think we can all agree that it is adds a dramatic change to how...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.