title: Visual Studio 2010 C++ compiler - Get current line number when compiling
body: <p>i have a question about how to get the current line number while compiling of the VS C++ compiler, <strong>IF</strong> its possible of course.
  I know its possible to use the LINE Macro from the preprocessor, but the results i get are not correct (well, at least not what i want).</p>
  
  <p>Please tell me its possible :)</p>
  
  <p>Thanks in advance</p>
  
  <p>edit:
  I think i found my mistake with using the <code>__LINE__</code> macro. I feel a kinda stupid now.. I think i have to go to bed (after some time you are not creating/adding anything new but destroying what you have done so far). Problem solved, thanks all for your help!</p>