From: G. F. <gfo...@gm...> - 2021-09-19 20:08:43
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div> <div><br/> > Yeah, as Xianfan states, its not possible with this or any other<br/> > similar libarary. You cannot handover handles to<br/> > resources/devices/files from one application to another. That would be<br/> > a major security hole if you could. Most O/S only allow this is very<br/> > limited form.<br/> </div> <div>I can integrate some C++ functions into the main applications that have access to its memory space.</div> <div>Maybe I can then share the handle.</div> <div>Problem is actually that mingw refuses to build the code.</div> <div> </div> <div>The linker seems to complain about "undefined reference to `usb_init' and all the other libusb refernces.</div> <div>I tried to point it to the libusb.a file but it does not recognize it.</div> <div> </div> <div>Could the problem be that the main application is 64 bit and the library is 32 bit? Do I need a 64 bit library? Sounds weird if the name is libusb-win32...</div> <div> </div> <div>Sorry if I sound stupid, but regarding compilers, libraries and so I really am.</div> <div> </div> <div> </div></div></body></html> |