originally posted by KhanDelphi :
other resources : http://www.jacobthurman.com/?p=27Delphi 2009 <> Delphi 2007 (any old version) is STRING type:
+ In Delphi2009 (12),
type STRING = UnicodeString
UnicodeString is not the same WideString
+ In Delphi 2007 (6,7,8,9,10,11)
STRING is the same AnsiString
WideString support for Unicode.
Because any different type in old version with Delphi 2009, someone must change anything in the PAS files of the old version:
+ In package, replace VclJpg with VclImg
+ Replace WideString with string
+ Replace WideChar with Char.
You look WideCharToMultibyte, MultibyteToWideChar may be error! Because "WideChar"-->"Char"
+ Replace WChar with Char
+ Replace AnsiStrComp with StrComp
Do that with any Ansi function.
+ Find some words as "Ansi" to remove it if you need.
based on both of these,here is the new delphi header for 2009 & 2010,tested on 2010,dunno really sure since i just newcomer in delphi ,attached below just replace your old header on : C:\Program Files\The Enigma Protector\EnigmaSDK\Delphi & C:\Program Files\The Enigma Protector\EnigmaSDK .