I have a COM object, originally compiled under Delphi 2007, 32-bit. Now I have ported to Delphi XE3 using 64-bit compiler. It compiles successfully with a new 64-bit DLL but I just can't get it registered.
I am using the Admin to register the DLL, it works fine for 32-bit DLL but not for 64-bit.
It keeps saying 'Invalid Access to Memory Locations'
Any hints here?
PS: the command i use is simply %systemroot%\System32\regsvr32.exe test.dll.
When registered in Windows 7 64-bit, it shows 'Invalid Access to Memory Locations'; when registered in Windows 8 64-bit, it shows 'A dynamic link library initialisation routine failed'.