I want to set the current directory to the work directory (where the executable is located) but I can´t get it to work so far.
Even if I give the path name directly in the call, like eg:
SetCurrentDirectory("C:\bla\blabla\blaaaa");
This doesn´t work, also:
SetCurrentDirectory(work_dir);
I´ve tried to use a long as pointer to the string, but that doesn´t work either.
Please don´t laugh, I´m an absolute beginner when it comes to C.
I´m a littlebit confused by all the datatypes.
Can you help me out?