1. Update: GenDLL

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...

new topic     » topic index » view message » categorize

2. Update: GenDLL

link: http://www.cyd.liu.se/~micol972/site/gendll03.zip

This update concerns mainly those who are using linux. I've started working 
on a kernel32 replacement for linux
(called linknl32). I never did figure out how to do memory allocation 
through the kernel, but i have some
file handling functions working (..probably. the only function that i've 
actually tested is WriteConsole, but it worked..)
The test programs won't run straight out of the box in linux(at least not 
for me). I have
to specify the absolute filenames for the programs to find the dlls. Maybe 
that has something
to do with my setup...
I've also added the ability to call _fastcall functions, and i fixed a bug 
in define_c_func/proc
while i was at it.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu