Hi!
I have a new problem binding BASS to Node.js. I already have bound some functions, and everything works fine. Now i'm trying to implement the proc functionality, and here i stuck now. While Bass is written in C, Node.js extensions are going to be written in c++. Additionaly i need to wrap all javascript callbacks in my own class to get methods with single parameteres instead of args arrays (that are used to call the javascript callbacks in c++).
But now, how can i use c++ non-static class methods from object instances as callback procs for BASS? I already have tried std::function and std::bind, but my compiler won't cast from function<...> to (*ptr). Is there a special way to do this?
Ian, do you maybe have information about how the .NET Bindings solve this problem?
Thank you!
