Link to home
Start Free TrialLog in
Avatar of ysimon
ysimon

asked on

Unsafe code compiled in Delphi 2005

I have a Delphi code with pointer operator ^, it can not be compiled under Delphi 2005.
Can I set the compiler enviroment paramenters without change the source code?
Any suggestions?
Ā 
Avatar of BlackTigerX
BlackTigerX

this is a Win32 application right?

somewhere in the Tools, Debugger... my Delphi 2005 broke =o(
Avatar of ysimon

ASKER

The code with @ and ^ can be compiled under Delphi 2005 Win32.
Now I am using it in an ASP.NET application under Delphi 2005.
It stoped at the line with @ and ^ operators.

ysimon
I don't think unsafe code is supported in Delphi.NET... that's why they introduced the unsafe warnings since Delphi 7... let me see if I can find some official references for this
ASKER CERTIFIED SOLUTION
Avatar of BlackTigerX
BlackTigerX

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ysimon

ASKER

This doesn't work.
Avatar of ysimon

ASKER

It works, you should use it like:

{$UNSAFECODE ON}
procedure/function (..); unsafe;
begin
..

end;
{$UNSAFECODE OFF}

Thanks,

ysimon