Changes between Version 1 and Version 2 of DynamicByDefault/Windows
- Nov 27, 2012 1:35:57 PM (16 months ago)
v1 v2 19 19 == Loading DLL resource from memory == 20 20 21 An improvement 21 An improvement on the C stub options is to use windres to embed the DLL into the executable, and then to load the DLL from there. It would be possible to write the DLL out to a temporary file and load that, but that would be rather unpleasant. Better would be to load the DLL directly from memory. 22 23 Windows doesn't support that, but there is code to do so [http://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/ here]. Downsides are that it is MPLed (to check: is that a problem?), it involves replicating some of the system linker (but not as bad as the current GHCi linker). It is also untested, so we are not 100% sure that it will work.