IonicWind Software

IWBasic => General Questions => Topic started by: myql on September 11, 2009, 06:09:48 PM

Title: Can a dll be a resouce, at run time copied to a file, then use its functions?
Post by: myql on September 11, 2009, 06:09:48 PM
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
Title: Re: Can a dll be a resouce, at run time copied to a file, then use its functions?
Post by: ZeroDog on September 14, 2009, 01:38:25 PM
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...
Title: Re: Can a dll be a resouce, at run time copied to a file, then use its functions?
Post by: King64 on September 15, 2009, 12:52:30 AM
You can avoid the problem with the run-time dynamic linking.  :)