I cannot import an activeX controll into Delphi XE2 which is running on Windows 7 64bit. When the .pas code is generated (I don't undrstand how this is done) there are many errors in the code. By comparing what happens using Delphi 2010 on another machine I can see what the code should look like. For example, XE2 produces
functionA := (var1, var2);
which is nonsense, but Delphi 2010 produces
functionA[var1] := var2;
which complies ok.
I assume that this is a problem with XE2 since the activeX files are the same on both machines, but does anyone know how I can get round this? Maybe I could use the code generated by 2010, but I have no idea how. I have copied the D2010 code to XE2 and compiled it but this doesn't get me to the stage where I have a new component, so any hint or link to how to progress would be appreciated.
functionA := (var1, var2);
which is nonsense, but Delphi 2010 produces
functionA[var1] := var2;
which complies ok.
I assume that this is a problem with XE2 since the activeX files are the same on both machines, but does anyone know how I can get round this? Maybe I could use the code generated by 2010, but I have no idea how. I have copied the D2010 code to XE2 and compiled it but this doesn't get me to the stage where I have a new component, so any hint or link to how to progress would be appreciated.