question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to call method in class

See original GitHub issue

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);

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
puttehicommented, Mar 26, 2021

Same issue here. No way to use classes.

0reactions
goulucommented, Dec 16, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to call a method in another class of the same package?
From outside the defining class, an instance method is called by prefixing it with an object, which is then passed as an implicit...
Read more >
Python Classmethod
A class method is a method that's shared among all objects. To call a class method, put the class as the first argument....
Read more >
Defining and Calling Methods | Defining and Using Classes
An instance method is invoked from a specific instance of a class and typically performs some action related to that instance. A class...
Read more >
How to Call a Method in Java - Javatpoint
To call a user-defined method, first, we create a method and then call it. A method must be created in the class with...
Read more >
How to Call a Method in Java? - JanBask Training
“ If static as a keyword is not there, then the method can only be invoked through an object. E.g., if the class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found