.net - How do you consume an OCX in a class library? -
my goal consume ocx inside of vb.net 4.0 class library in vs 2013, may access device exposed ocx multiple applications via class library. have tried adding reference directly ocx, adds interop.xxxlib.dll provides interface. have tried ocx toolbox, adding windows form class library, dropping toolbox activex control on win form, , exposing active x control class through public property. however, later method requires use static members , first app uses device won't release resources, other apps may use device.
your problem appreciated.
Comments
Post a Comment