Hi all
As in per prev post, I am able to download the 98ddk & ms vc 1.52 from microsoft. (i havent installed SDK.)
After trying a lot on making build comand to run…and finally able to make CBITMAP.DRV…which give bottom up bmp image…no issue here…though tried to make it top-down, but mspaint(in 98) shows error that bmp has pixels more on one side…
Problem
- I tried calling CreateMutex/CloseHandle() (to check named mutex) from minidriv.c(of cbitmap.drv) and initially it gave some comiple time error, then i have got .obj files for all .c/asm files…but LINKER gave me error L2029 unresolved externals…i m quiet sure that Problems with LIB PATH here…am i right? Then why call with above apis work?..i can see kernel.lib in lib/win98/, …
C:\98DDK\src\printer\cbitmap>build -cZ
BUILD: Compile and Link for i386
BUILD: Compiling c:\98ddk\src\printer\cbitmap directory
Assembling - libinit.asm for i386
Compiling - minidriv.asm for i386
Compiling - cbitmap.asm for i386
Linking Executable - obj\i386\cbitmap.exe for i386
obj\i386\minidriv.obj(minidriv.c) : error L2029: ‘CREATEMUTEXA’ : unresolved ext
ernal
obj\i386\minidriv.obj(minidriv.c) : error L2029: ‘CLOSEHANDLE’ : unresolved exte
rnal
rc() : error RW1030: obj\i386\CBITMAP.exe: Errors occurred when linking file.
BUILD: Linking c:\98ddk\src\printer\cbitmap directory
BUILD: Done
3 files compiled - 2 Warnings
1 executables built - 1 Warnings - 3 Errors
- i also tried to load DLLs from it, but loadlibrary failed. is it becoz of dll might be 32bit? so how to call such dll?
- I also tried to import kernel.loadlibraryex32W/A… then linker gave another error (which i thoght will be easy to solve but couldnt :-()
C:\98DDK\src\printer\cbitmap>build -cZ
BUILD: Compile and Link for i386
BUILD: Compiling c:\98ddk\src\printer\cbitmap directory
Assembling - libinit.asm for i386
Compiling - minidriv.asm for i386
Compiling - cbitmap.asm for i386
Linking Executable - obj\i386\cbitmap.exe for i386
obj\i386\minidriv.obj(minidriv.c) : error L2003: near reference to far target at 229 in segment _TEXT
rc() : error RW1030: obj\i386\CBITMAP.exe: Errors occurred when linking file.
BUILD: Linking c:\98ddk\src\printer\cbitmap directory
BUILD: Done
3 files compiled - 2 Warnings
1 executables built - 1 Warnings - 2 Errors
Where can i get information regarding API to use in DRV? …
- i might needed to check registry as well…RegOpenKey/RegEnum…etc…
I am agin lost and having tuff time with win98
Thanks in advance.
jrc