Update: GenDLL
- Posted by stabmaster_ at HOTMAIL.COM May 05, 2002
- 377 views
link: http://www.cyd.liu.se/~micol972/site/gendll02.zip I've fixed a few bugs in this release, making it more likely work with _your_ dll. I've also added the ability to call cdecl functions (if you like to compile your dlls with MSVC and are to lazy to write _stdcall :) Finally, I've written some DOS-specific replacement code for kernel32.dll, called dosknl32.dll. This dll is automatically loaded whenever someone (either the user or another dll) tries to load kernel32.dll and platform()=DOS32. The dosknl32 library differs from its generic counterpart (genknl32) in that it actually tries to emulate the functions, and not simply return a bogus value. Obviously, only a very small subset of the Win API is covered. So far I've got CreateFile, CloseHandle, WriteConsole, LocalAlloc and some others working (more or less). At least they work well enough to enable my windows bitmap library to run (test program included in zip file). If you want to see a function added to dosknl32, and is or want to be familiar with MASM, then feel free to dig in...