Author Topic: Hello, can anybody help me?  (Read 4502 times)

0 Members and 1 Guest are viewing this topic.

Offline gorghell

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
Hello, can anybody help me?
« 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.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12856
    • View Profile
Re: Hello, can anybody help me?
« Reply #1 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

Offline MarkV

  • Insane poster
  • *****
  • Posts: 745
    • View Profile
Re: Hello, can anybody help me?
« Reply #2 on: October 31, 2008, 10:34:05 PM »
The answer is given directly above your post: Your Delphi is too old.
http://worldipv6launch.org - The world is different now.

Offline buhui

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: Hello, can anybody help me?
« Reply #3 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?

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12856
    • View Profile
Re: Hello, can anybody help me?
« Reply #4 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 ;)

Offline buhui

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: Hello, can anybody help me?
« Reply #5 on: November 01, 2008, 05:53:35 PM »
Thanks for your help and I solved the problem with Dephi 2006.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12856
    • View Profile
Re: Hello, can anybody help me?
« Reply #6 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 ;)