File path at compile time

Discussion to talk about software related topics only.
Post Reply
macpherson
Posts: 38
Joined: Tue Jun 03, 2008 10:26 am

File path at compile time

Post 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"?
Post Reply