Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call method in class #366

Open
xml4cn opened this issue Mar 16, 2017 · 6 comments
Open

How to call method in class #366

xml4cn opened this issue Mar 16, 2017 · 6 comments

Comments

@xml4cn
Copy link

xml4cn commented Mar 16, 2017

I have a dll like this:
classA : method1, method2
classB: method3, method4

How to call method1 ??

var Com = ffi.Library('D:/dll/test.dll', {
	'classA.method1': ['bool', ['int', 'long']]
});
var result = Com.classA.method1(1,2);
@xml4cn
Copy link
Author

xml4cn commented Mar 16, 2017

the dll is developed with vb activex dll file
I want to use clsOperInterface.GetBaseInfo

@bruno-brant
Copy link

I'm looking into this as well...

@xml4cn
Copy link
Author

xml4cn commented Jun 17, 2017

The dll is microsoft COM , I have used C# to solve it。
I think ffi don't support COM.
How to call COM interface by nodejs? Is there any advice?
我之前以为ffi支持COM组件,后来查了一下资料,发现只支持标准的C接口。所以我就用C#做了一个中转的接口,供nodejs来调用。

@ghost
Copy link

ghost commented Jul 26, 2020

i know lots time has passed.. i couldn't find anything about this online. is is possible?

@goulu
Copy link

goulu commented Dec 16, 2020

same here... found no way to call a class method ...

@puttehi
Copy link

puttehi commented Mar 26, 2021

Same issue here. No way to use classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants