Hi!
This could also be an Enterprise topic, I suppose, but seemed slightly more apropos here.
I’m attempting to use a 64-bit DLL, unfortunately the only pre-built binary provided (and it looks like a total hassle to dig up all the 32-bit parts and recompile them, to say nothing of maintenance after the fact).
Now, I offered to help write up this particular library’s Lua binding, so it looks like I can just build that as a DLL, hook up it to an equally 64-bit Lua, and run them together in a 64-bit process. (I’ve got the DLL parts underway. The binding will take some time, though.) My idea, piggybacking on that, is to write a plugin that launches that process, then uses some form of IPC to send Lua code strings across to it and also to retrieve results back. My hope is to have a process simple enough that I can hook into the parent’s WindowProc and field WM_COPYDATA messages on the receiving end, or maybe even the clipboard if I can get away with it. (After that, the options seem to get more and more onerous.)
Has anybody done anything along these lines? If so, does anything stand out as wrong, or might I be missing a more straightforward way? Can this be done without making the antivirus program cry? :) (Thinking longer term, could this ever pass muster as a store plugin?)
Many thanks for any suggestions!