Parameters reversed in event

2003-09-08 01:41:47 AM
I create a simple automationObject that implements one test event.
When i import that type library in delphi project, the parameters come
reversed when the event is triggered.
I checked the _TLB file that is created when library is imported but is
seems ok.
If i do the same in VB(Visual Basic) the parameters are not reversed.
I know from regular DLLs, that there's something wrong with calling
convention somewhere, but idont know where.
Any ideas?
Thanks, Joe