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?
Ā
Can I set the compiler enviroment paramenters without change the source code?
Any suggestions?
Ā
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This doesn't work.
ASKER
It works, you should use it like:
{$UNSAFECODE ON}
procedure/function (..); unsafe;
begin
..
end;
{$UNSAFECODE OFF}
Thanks,
ysimon
{$UNSAFECODE ON}
procedure/function (..); unsafe;
begin
..
end;
{$UNSAFECODE OFF}
Thanks,
ysimon
somewhere in the Tools, Debugger... my Delphi 2005 broke =o(