Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing ActiveX Control in DElphi XE2

Status
Not open for further replies.

martinmos

Programmer
Aug 6, 2007
3
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top