Working with Visual C++ 2008 Express

Counting total lines of code in Visual C++ 2008 Express?

Page 1 of 1

10 Replies - 3644 Views - Last Post: 16 March 2010 - 02:50 PM Rate Topic: -----

#1 enonex  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 12-March 10

Working with Visual C++ 2008 Express

Posted 13 March 2010 - 12:03 AM

Does anyone know how to (when using Microsoft's Visual C++ 2008 Express) get the IDE to analyze the total number of lines of code? Possibly even in a graph/table format? Remember, I'm using the free version, so I don't have access to studio features. Also, if there are any tips and tricks that I absolutely must know when working in VC++2008E, your advice would be appreciated.

Thanks,

-enonex
Is This A Good Question/Topic? 1
  • +

Replies To: Working with Visual C++ 2008 Express

#2 sarmanu  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 967
  • View blog
  • Posts: 2,362
  • Joined: 04-December 09

Re: Working with Visual C++ 2008 Express

Posted 13 March 2010 - 12:04 AM

Welcome to DreamInCode enonex!
Follow these steps:
Tools -> Options -> Expand Text Editor -> Click on All Languages -> Check Line Numbers

This post has been edited by sarmanu: 13 March 2010 - 12:13 AM

Was This Post Helpful? 2
  • +
  • -

#3 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: Working with Visual C++ 2008 Express

Posted 13 March 2010 - 12:05 AM

Add the number of lines in each file.
Was This Post Helpful? 1
  • +
  • -

#4 enonex  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 12-March 10

Re: Working with Visual C++ 2008 Express

Posted 13 March 2010 - 10:06 PM

Thanks guys!
Was This Post Helpful? 0
  • +
  • -

#5 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: Working with Visual C++ 2008 Express

Posted 13 March 2010 - 11:45 PM

Sorry, I misunderstood the question.
Was This Post Helpful? 0
  • +
  • -

#6 enonex  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 12-March 10

Re: Working with Visual C++ 2008 Express

Posted 14 March 2010 - 09:10 PM

Seriously, PlasticineGuy? The other guys got it, and answered my question impeccably. Maybe you shouldn't question my post.
Was This Post Helpful? -2
  • +
  • -

#7 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: Working with Visual C++ 2008 Express

Posted 14 March 2010 - 11:47 PM

What? I'm just saying I forgot that you had to turn line numbers on and that's how I misunderstood.
Was This Post Helpful? 0
  • +
  • -

#8 Martyn.Rae  Icon User is offline

  • The programming dinosaur
  • member icon

Reputation: 545
  • View blog
  • Posts: 1,420
  • Joined: 22-August 09

Re: Working with Visual C++ 2008 Express

Posted 15 March 2010 - 12:15 AM

@enonex, the "guys" that responded to your post did not get it right! You posted:

enonex said:

Does anyone know how to (when using Microsoft's Visual C++ 2008 Express) get the IDE to analyze the total number of lines of code? Possibly even in a graph/table format?


There is no direct way to analyze the total number of lines of code. This is of no consequence to a programmer, so it is not a feature. Sarmanu was not incorrect in what he posted back to you ... but he most certainly did not answer your question impeccably so get your facts straight. Sarmanu just told you how to switch on line numbers. You don't need to do that. Simply place the cursor on the last line of the program and on the bottom of the IDE window, you will see how many lines there are. You can then transfer that to a spreadsheet, along with all the others to get a graph.

enonex said:

Also, if there are any tips and tricks that I absolutely must know when working in VC++2008E, your advice would be appreciated.


With the attitude you have shown PlasticineGuy, who apologised for posting, I am most certainly not going to give you any hints or tips unless you apologise to him.

This post has been edited by Martyn.Rae: 15 March 2010 - 12:16 AM

Was This Post Helpful? 0
  • +
  • -

#9 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: Working with Visual C++ 2008 Express

Posted 15 March 2010 - 01:25 AM

I can't feel very bitter about anything, so here's something: always ensure that you start from an empty project or you will get odd errors. Also, increase the warning level to 4. Always check that Unicode is turned off too.
Was This Post Helpful? 0
  • +
  • -

#10 enonex  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 4
  • Joined: 12-March 10

Re: Working with Visual C++ 2008 Express

Posted 16 March 2010 - 02:41 PM

Sorry, PlasticineGuy. I didn't see your previous post. It was stupid of me; I had thought that you only replied to say that I had incorrectly asked a question. I'm very sorry. And I'm not just posting this to appease you, I really do apologize for what I said.

my bad

-enonex

Thank you all so much for your posts.

-enonex
Was This Post Helpful? 0
  • +
  • -

#11 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2255
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: Working with Visual C++ 2008 Express

Posted 16 March 2010 - 02:50 PM

Just out there for the universe (not necessarily directed as a censure @enonex)

When someone mis-reads/mis-understands your post, generally just ignore it. I mean no one is getting paid for this. If you really feel that thier post was particularly unhelpful you might rep down the post (though always remember than you might be drawing agro so make sure its worth it). Trying to tell someone off for a "less than helpful" post is pretty useless and just clutters your thread and drives away other members who might be willing to help but could careless about your attitude over some post you didn't agree with. Plus (as seen above) it is a sure fire way to draw negative rep...

Just offing that tip to anyone who cares: When there is post you don't care for in your thread -- just ignore it. Chances are it was an honest mistake made by someone who is under no obligation what-so-ever to help you to begin with.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1