ok, its working now. I've changed the function names to some more comfortable ones, too.

dllfunction cfg(KeyString);
dllfunction cfgS(KeyString, returnString);

//PathString:
//the path to the cfg files, standard = data\\cfg\\
//double slashes!!
dllfunction cfgSetPath(PathString);

the file will be up tomorrow, I think.