Creating a folder in program's diectory

As you know, ofstream can't create folders. Using windows.h function CreateDirectory, you must know the full directory. But i need to place that folder in a directory where the executable is, like ofstream does with files. How to do this, if the directory of executable is unknown?
Topic archived. No new replies allowed.