Page 1 of 1

Cannot use enigma with Delphi 64 bit

Posted: Sun Aug 17, 2014 4:07 pm
by Erix
Hi,

First, the easy part :)
In enigma_ide.pas you need to change

Code: Select all

enigma_api_dll_name  = 'enigma_ide.dll';
to

Code: Select all

enigma_api_dll_name  = 'enigma_ide64.dll';
Second. Markers don't work with 64bit Delphi (I'm using xe6).
Code below cannot be compiled, as Delphi x64 does not support asm in a non-asm procedures

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
{$I C:\enigma\x64\EnigmaSDK\Delphi\vm_begin.inc}
  Self.Caption := 'Hello';
{$I C:\enigma\x64\EnigmaSDK\Delphi\vm_end.inc}
end;
I get
[dcc64 Error] vm_begin.inc(1): E1025 Unsupported language feature: 'ASM'
.

I'm evaluating the demo version of Enigma.

Erix

Re: Cannot use enigma with Delphi 64 bit

Posted: Mon Aug 18, 2014 5:50 pm
by Erix
Update.
Seems like I found the solution :)
- I took enigma_ide64.pas from FPCx64
- used EP_Marker instead of .inc files
- changed from

Code: Select all

procedure EP_Marker(Marker : string);
to

Code: Select all

procedure EP_Marker(Marker : Ansistring);
as strings in Delphi x64 are in Unicode.

Seems to be working fine. At least now Enigma was able to find the markers.

But it would be nice to get the official solution for this.

Erix