开发者

OCX library with C# (ActiveX library)

开发者 https://www.devze.com 2023-01-20 04:31 出处:网络
whats the simplest way to make ocx library working in c#? (I\'m using wpf project) I tried to use 开发者_StackOverflow中文版aximp, but when creating Ax[libname]Lib.Ax[libname] object, calling getocx()

whats the simplest way to make ocx library working in c#? (I'm using wpf project) I tried to use 开发者_StackOverflow中文版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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消