Search code examples
c#wpfactivexocx

OCX library with C# (ActiveX library)


whats the simplest way to make ocx library working in c#? (I'm using wpf project) I tried to use aximp, but when creating Ax[libname]Lib.Ax[libname] object, calling getocx() returns null.

EDIT: I should add, that this lib is for communicating with some specific driver


Solution

  • Ok, I found solution :) After creating object, it's necessary to call method .CreateControl()