I am creating an ActiveX: How do I pass records?
Posted on 2001-06-18
I am in the process of making an ActiveX control in Delphi. I started out using the wizard and then added methods and some records in typelib on my own.
All works fine when I just pass an integer or other primitive types.
However, I have made some records in the typelib and I would like to pass either pointers to these or the records themselves in method calls:
E.g. I have a record:
dxx_vector = packed record
And I want to add this record to the ActiveX (is already done) and allow users of the ActiveX to access it (already works) and pass it as parameter (how?). And can this be done both as pass-by-value and pass-by-reference?
I tried adding a parameter of type "dxx_vector" but the resulting code just passes a TGUID. How do I use this to access the record or am I doing something complete wrong here?
Jacob Marner, B.Sc.