I'm not exactly sure of the requirements of your program, but this is the basic steps of how it could be done.
Changing to your program directory:
- GetModuleFileName to retrieve program path
- C string functions to cut the path down to the bottommost directory
- _chdir to change program directory
Hey the GetModuleFileName was what I was looking for. I could have probably figured out how to create and write to the file myself by looking through MSDN. Thanks a bunch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.