From: Paul M. <pf_...@ya...> - 2008-09-05 08:23:35
|
Jay wrote: > Instead of being wierd, and limiting the .exes that can load .dlls > that your .exe uses, you are usually better of pushing your .exe's > code into a .dll, and having .dlls link to that. > > Unless you strongly believe that you don't want your .dll loaded into other > processes and .dlls that link back to it are unlikely to want to either. Thanks. I've actually gone for dynamic linking using GetProcAddress. It's not so much a matter of preference, as of what I have control of. This is for an extension to an existing program, where I have limited control over what I can change in the code or build process for the main program. So I'm jumping through these hoops to minimise the impact of my changes. (That's not too clear. I could be specific - it's an extension to the Vim editor where I'm helping to tidy up the build process for a new extension someone else has written - but the gory details are probably more confusing than helpful!) Paul. |