Importing ActiveX objects into Delphi.

When I import a COM object then Delphi generates a wrapper for it. Problem is: The wrapper is not always valid. Is there any other program which can generate the delphi wrapper unit for a com object?
  Can someone give me a clue how to create a working wrapper for com components?
 
BudaAsked:
Who is Participating?
 
intheCommented:
0
 
EpsylonCommented:
I don't think you will find anything.
0
 
robert_marquardtCommented:
What do you mean with "not always valid"?
Is this the problem that the import always generates "var" parameters and never "Pointer2 parameters?
This problem is not solvable. There is not enough information in the IDL (which describes the structure of the TLB) to decide if "Var" or "Pointer" should be generated.
So the conversion program of Delphi uses always "var".
0
 
BudaAuthor Commented:
inthe got the point, but still. I could not run my activex on first try. The problem IS in sink object.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.