October 29, 2025, 10:24:26 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Can a dll be a resouce, at run time copied to a file, then use its functions?

Started by myql, September 11, 2009, 06:09:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

myql

I have a dll that I tried to use Dll2lib with. The resulting .exe seems to be okay, but the .dll functions complain of a code integrity problem, then kill the app. I suspect that is because it really wants to be a separate file, so it can check a digital signature or something.

Is it possible to include the .dll as a resource, then at run time copy it into a file and then be able to use it? It seems it might be possible if a library expects it to be in the current (.) directory, and the file appears before any functions are called.

Could this work if the $USE "the.lib" statement appeared in the right place? Or is this whole idea impossible?

Michael

ZeroDog

theoretically it should be possible... havent tried it tho... but as long as you make a .lib from the same dll as the one you are adding as a resource, it should work I think...

King64