Need help in opening a file without specifying its path...
Hello frnds... I know that if the executable (.exe) file and the required file lies on the same folder, then it can be processed without specifying its path.
I'm not talking about usual file operations..
In my program, before it ends, it should open and display an image..
For tat i used this command:
Code:
system("start c:\\rehman\\image.jpg");
It actually works.. But, that executable file depends on the path of that image file...
Is there anyway for this to work such that the image file and the executable file lie on same folder..?
Is there any code for that?
So that i can move that bundle to various locations or other computer...
Am i clear...???
Please help me guys..
Thanks in advance...!