CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    how to get current line number?

    I want to know how to get the current line number so it will be easy to locate where the error occurs.


  2. #2
    Join Date
    Apr 1999
    Posts
    3

    Re: how to get current line number?

    Look in your documentation for __LINE__. It will do what you want while it is preprocessing the files.

    Aureliano



  3. #3
    Join Date
    May 1999
    Posts
    57

    Re: how to get current line number?

    If it's the normal errors you get when compiling/linking with visual c; just double click the error in the output window and it'll take you to line with the error.

    If you want to go to a particular line in a file you can use the go to command (edit menu, or press ctrl+g). The line the cursor is currently on is shown on the status bar at the life. Ln XXXX, Col XX for line and column.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured