Swarmer wrote:Actually I just found out a pretty weird but simple way to do it:"path" gives the full path of the exe file.Code: Select all
char path[MAX_PATH + 1]; GetModuleFileNameA( NULL, path, MAX_PATH + 1 );
Thanks for the suggestions.
have been looking for a way todo that for an age, good work ;0)