Change the working directory for a MFC application
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
I am trying to change the working directory of a MFC application after the application execution begins. Chdir or setcurrentdirectory doesnot work for a MFC application. Can anyone suggest how i can do this?
SetCurrentDirectory
works in MFC. Check if your path is valid. Also you could useGetLastError
after the failure of the function. If the path is OK then some relevant code snippet about your problem could also help us to find the problem. ;) Regards, -
SetCurrentDirectory
works in MFC. Check if your path is valid. Also you could useGetLastError
after the failure of the function. If the path is OK then some relevant code snippet about your problem could also help us to find the problem. ;) Regards,