[fpc-pascal] Fp-Doc. Question No.1

Tiziano - Mekar Srl - tiziano.detogni at mekar.it
Tue May 23 10:02:32 CEST 2006


I'm using Windows XP (HE) Lazarus 0.9.14 with FPC 2.0.2

After reading the recent threads in the Lazarus mailing list, I realized
that I should study how Fp-Doc works. 

this is the first command I tried:

C:\lazarus\pp\bin\i386-win32\fpdoc --package=test --input=test.pas

and this was the output:

FPDoc - Free Pascal Documentation Tool
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,
sg at freepascal.org

Writing 112 pages...
Could not create file "test\index-1.html": Access denied
Could not create file "test\index-2.html": Access denied
Could not create file "test\versione.html": Access denied
.......
Could not create file "test\arc_sen.html": Access denied
Could not create file "test\arc_cos.html": Access denied
Done.

I looked in the fp-doc sources and tried to fix the problem: 

patch in dw_html.pp:
--------------------------
//  if not FileExists(Path) then		old
  if not DirectoryExists(Path) then		new
  begin
    CreatePath(Path);
    MkDir(Path);
  end;

now it is working ok. But I don't know if the reason is:

a) Fileexists non more works on directories, only on files
b) Fileexists works on Linux but not on Windows

someone could give me an advice?

This is the first of a series of Fp-Doc questions...

bye
tiziano



###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/



More information about the fpc-pascal mailing list