| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| DLL_EXE.BAT | 2022-06-14 | 583 Bytes | |
| DLL_EXE.DEF | 2022-06-14 | 340 Bytes | |
| LOADLIB.C | 2022-06-14 | 16.1 kB | |
| MAK_STUB.BAT | 2022-06-14 | 131 Bytes | |
| ONLY_EXE.DEF | 2022-06-14 | 19 Bytes | |
| 32STUB.ASM | 2022-06-14 | 121.9 kB | |
| APNG.C | 2022-06-14 | 1.9 kB | |
| DLLRELOC.C | 2022-06-14 | 2.0 kB | |
| 32STUB.BIN | 2022-06-14 | 4.6 kB | |
| ld_file.exe | 2022-06-14 | 29.2 kB | |
| ld_file.map | 2022-06-14 | 14.3 kB | |
| ld_file.TDS | 2022-06-14 | 66.0 kB | |
| 32STUB.OBJ | 2022-06-14 | 5.4 kB | |
| DEBUG.TXT | 2022-06-14 | 1.2 kB | |
| GDI.C | 2022-06-14 | 16.0 kB | |
| LD_FILE.C | 2022-06-14 | 11.0 kB | |
| ONLY_EXE.BAT | 2022-06-14 | 410 Bytes | |
| PNGLIB.C | 2022-06-14 | 849 Bytes | |
| README.TXT | 2022-06-14 | 1.9 kB | |
| Totals: 19 Items | 293.7 kB | 1 | |
----------------------------------------------------------------------------------------------
(1)We can show png by "ld_file.exe ..\pnglib.png".
(2)We can debug the exe by "E:\program\bc4.5\bin\td32 ld_file.exe ..\pnglib.png".
(3)Both above are use api to in_from_png and out_to_lcd.
in: png file bytes
out: bitmap of lcd device
+--------+-----------------------------------------+------------------------------------+
| api | dos | window |
+--------+-----------------------------------------+------------------------------------+
|without |pnglib.c\dpmi.bc4\loadlib.c\read_file |system32\kernel32.dll\ReadFile |
| td32 |pnglib.c\dpmi.bc4\gdi.c\setDibits2device | |
+--------+-----------------------------------------+ |
|with |bc4.5\bin\32rtm.exe\ReadFile | |
| td32 |pnglib.c\dpmi.bc4\gdi.c\setDibits2device |system32\gdi32.dll\SetDIBitsToDevice|
+--------+-----------------------------------------+------------------------------------+
(4)Q:How to build the exe?
A:We can build png.dll(18k) and ld_file.exe(14k) by "dll_exe.bat"
We can build only ld_file.exe(29k) by "only_exe.bat"
Both of them can run and can be debug as (1) and (2).
(5)Q:What's the different from [sample.bc4] and [dpmi.bc4]?
A:The later can run and can be debug in dos.
(5.1)We #include loadlib.c and gdi.c in ld_file.c,
for "in_from_png and out_to_lcd".
(5.2)We #include dllReloc.c in pnglib.c,
to tell her we had replace apies such as ReadFile.
(5.3)We link ld_file.exe with 32stub.bin(4k),
to run this exe in dos without td32,
by the help of Thomas Pytel's pmode307.
(6)Q:How to build 32stub.bin?
A:by "mak_stub.bat".