Using a VB OCX with Delphi:

"The problem is a flag called Can Create that VB sets when it creates an ActiveX control. What you need to do is in Delphi select "Tools | Environment Options", then select the Type Library tab.
Check the "Ignore Special CoClass Flags when importing" box, and then check "Can Create" then import your ActiveX control.
It should work this time."

If you look at the generated IRTransOCX_TLB.pas file you'll notice loads of ghostmethods. All these ghostmethods shouldn't really be there, but I assume that's part of the vb6 vs delphi COM incompatibility.
I spent sometime investigating this ghostmethods import mess and also trying to figure out why all the method params are passing byref.
The reason should be that most of them are treated as "inout" params which, according to the VB source I have, shouldn't be the case.
Unfortunately VB is not my stuff and trying to modify the typelibrary in order to get a clean import from D9 has been overkilling for me.
I just gave up... sorry.

Anyway, in order to help delphi developers a little, I attached the correct files generated by D2005 (aka D9) using the abovementioned tip.
Needless to say that in case you'd like to put these in your sdk distribution, they are provided "as is" (ghostmethod mess included).
