I'm trying to access some functions inside my C# .dll library and I'm doing it in node.js. I managed to load the library but having some troubles accessing the functions because they are inside a namespace "CCTalkReader" which contains a class "CREDIT_MANAGER" and inside this class I have my method INIT. How do I call it correctly?
I tried like this:
const CCTalk = new ffi.Library("./CCTalkNoteBill.dll", {
'CCTalkReader':{
'CREDIT_MANAGER':{
'INIT': ["void", []]
}
}
});
CCTalk.INIT();
and this
const CCTalk = new ffi.Library("./CCTalkNoteBill.dll", {
'INIT': ["void", []]
});
CCTalk.INIT();
But I always get
Dynamic Symbol Retrieval Error: Win32 error 127
which I found out means that I don't write the second parameter (function name) correctly. Any Ideas?