rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: gorghell on July 20, 2007, 09:37:27 AM

Title: Hello, can anybody help me?
Post by: gorghell on July 20, 2007, 09:37:27 AM
Hello,
First of all, i want to start by saying that i'm not a programmer, but i'm trying to learn...
Now, could anybody help me out by telling me why i keep getting this error when i try to compile version 2.2 (i'm using Delphi 7).

Quote
[Warning] main.pas(875): Unsafe type 'Pointer'
[Warning] classesLib.pas(107): Unsafe type 'procedure, untyped pointer or untyped parameter'
[Warning] classesLib.pas(243): Unsafe code '@ operator'
[Warning] classesLib.pas(297): Unsafe code 'String index to var param'
[Warning] classesLib.pas(297): Unsafe code 'String index to var param'
[Warning] classesLib.pas(317): Unsafe code '@ operator'
[Warning] classesLib.pas(317): Unsafe code '@ operator'
[Warning] classesLib.pas(317): Unsafe code '@ operator'
[Error] classesLib.pas(383): Undeclared identifier: 'FileName'
[Error] classesLib.pas(383): Operator not applicable to this operand type
[Warning] classesLib.pas(410): Unsafe code 'String index to var param'
[Warning] classesLib.pas(436): Unsafe code 'String index to var param'
[Warning] classesLib.pas(436): Unsafe code 'String index to var param'
[Warning] classesLib.pas(587): Unsafe type 'procedure, untyped pointer or untyped parameter'
[Warning] classesLib.pas(605): Unsafe code '@ operator'
[Warning] classesLib.pas(695): Unsafe typecast of 'TObject' to 'Integer'
[Warning] classesLib.pas(703): Unsafe typecast of 'Integer' to 'TObject'
[Warning] classesLib.pas(713): Unsafe typecast of 'TObject' to 'Integer'
[Warning] classesLib.pas(715): Unsafe typecast of 'Integer' to 'TObject'
[Warning] classesLib.pas(829): Unsafe type 'PChar'
[Warning] classesLib.pas(834): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(835): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(837): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(838): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(838): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(839): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(839): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(840): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(841): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(841): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(843): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(843): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(844): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(844): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(844): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(845): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(847): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(850): Unsafe type 'eos: PAnsiChar'
[Warning] classesLib.pas(851): Unsafe type 'eos: PAnsiChar'
[Warning] classesLib.pas(851): Unsafe type 'eos: PAnsiChar'
[Warning] classesLib.pas(860): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(860): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(870): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(870): Unsafe code 'String index to var param'
[Warning] classesLib.pas(874): Unsafe type 'eosl: PAnsiChar'
[Warning] classesLib.pas(875): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(876): Unsafe type 'eos: PAnsiChar'
[Warning] classesLib.pas(877): Unsafe type 'bos: PAnsiChar'
[Warning] classesLib.pas(878): Unsafe type 'ptxt: PAnsiChar'
[Warning] classesLib.pas(879): Unsafe type 'ptxt: PAnsiChar'
[Fatal Error] optionsDlg.pas(127): Could not compile used unit 'classesLib.pas'

If anybody could tell me how to fix this it will be very apreciated...
Thanks.
Title: Re: Hello, can anybody help me?
Post by: rejetto on July 20, 2007, 10:02:33 AM
because your delphi is older than the one i use
turbo delphi is free http://www.turboexplorer.com/delphi
Title: Re: Hello, can anybody help me?
Post by: MarkV on October 31, 2008, 10:34:05 PM
The answer is given directly above your post: Your Delphi is too old.
Title: Re: Hello, can anybody help me?
Post by: buhui on November 01, 2008, 03:28:47 AM
Thank you very much!
Actually I used the CodeGear Dephi 2009 and it shows errors,such as "File not found :'wscoket.dcu'",So I suppose it maybe my veision is new.I don't know how to solve it in the the newset version.Did you know?
Title: Re: Hello, can anybody help me?
Post by: rejetto on November 01, 2008, 01:31:08 PM
Thank you very much!
Actually I used the CodeGear Dephi 2009 and it shows errors,such as "File not found :'wscoket.dcu'",So I suppose it maybe my veision is new.I don't know how to solve it in the the newset version.Did you know?

that is because you didn't install the required libraries.
wsocket is a 3rd party library (that means, not included in delphi).
you could ask google first ;)
Title: Re: Hello, can anybody help me?
Post by: buhui on November 01, 2008, 05:53:35 PM
Thanks for your help and I solved the problem with Dephi 2006.
Title: Re: Hello, can anybody help me?
Post by: rejetto on November 02, 2008, 02:18:07 AM
by default delphi stops on every exception, even those who are correctly handled.
you need to reconfigure this, to run without stopping.
i don't remember where is the option, surely among the options ;)