Page 1 of 1

File path at compile time

Posted: Wed Aug 12, 2009 4:05 pm
by macpherson
I am trying to have my application display the path of the directory in which it was compiled

Code: Select all

  iprintf( __FILE__ );
  iprintf( "\r\n" );
This only produces a relative path such as "..\main.cpp". How can I get it to say "C:\data\nburn\test01\main.cpp"?