How to access method of dynamically loaded com?
See the question and my original answer on StackOverflowYou should be able to use the 'dynamic' pseudo-type keyword. It will never fail at compile time, only at runtime (so you have to define calls carefully so they match the underlying definition) like this (I suppose you have 2 methods on the OCX):
dynamic ocx = m_axCtrl.GetOcx();
ocx.DoThis(arg1, arg2);
ocx.DoThat();