Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Importing ActiveX Control in DElphi XE2

Importing ActiveX Control in DElphi XE2

Importing ActiveX Control in DElphi XE2

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close