Current directory defining
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
How to define current directory? Actually a directory from which program started. And a back side of this: how to define whether file exist in a specified path ?
Take a look at "GetModuleHandle" and "GetModuleFileName" GetModuleHandle will return a handle to the currently running app. Use the handle in GetModuleFileName to get the path of the module...or you app. You can also use GetCurrentDirectory(). That should do it. Hope this helps Tom Wright tawright915@yahoo.com