Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread leledumbo
> Another thing: Do not add a \ yourself. ExtractFilePath returns > as the last character a \ , so you'll have MyApp\\MyFile.ini > in the end, and I think windows doesn't like that. You can also use AppendPathDelim. -- View this message in context: http://www.nabble.com/ExtractFilePath%28GetMo

[fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread lloyd thomas
Need Help please "confini := ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I doing something wrong? The Problem is intermitent {$IFDEF Windows} confini := ExtractFilePath(GetModuleName(0))+'\Myfile.i

Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2009, lloyd thomas wrote: > Need Help please "confini := > ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program > FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I > doing something wrong? > > The Problem is intermitent > > {$IFDEF Windo

Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2009, lloyd thomas wrote: > Need Help please "confini := > ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program > FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I > doing something wrong? > > The Problem is intermitent > > {$IFDEF Windo

[fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-10 Thread lloyd thomas
Need Help please "confini := ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I doing something wrong? The Problem is intermitent {$IFDEF Windows} confini := ExtractFilePath(GetModuleName(0))+'\Myfile.i