i want to load an image from the dos command line: like LSB.exe image.bmp
here is the program source files (HERE THE LOADING OF THE IMAGE IS DONE BY OPEN WINDOW)
please help me i need to do command line execution of the program....
the LSB.asm saves the result image but i want it displayed in a window
please help i dont know any thing about assembly..
the code is the following
callW macro x
extrn x:PROC
call x
endm
.486
.model flat
;-------------- Data of the Program --------------
WTF are you doing with all this code if you don't know bupkis about ASM? I suggest you pick up a book and learn the basics before you ask any questions. If this is really urgent, go look for whoever dumped you this job and tell the person you know 0% of ASM.
sorry but the coder email is not in use
this program is loading a 24-bit bitmap image and then extracts the LSB then it saves the result image in the same name of the loaded image with _LSB extention
the only thing i need is to load the image from the comand line like this LSB.exe image.bmp
and then displays the result image rather than saving it.
i need it badly because my project uses this command line feature...
sorry if i was annoying..
but if you can help me please do..
thanks
Sorry, I don't speak assembler, but this is the appropriate place to post such a question. Just ignore Jafet's sanctimonious proclamations. :)
generating a window... that could be difficult in asm.
Assemble it with DJGPP (yes, it will eat ASM code...)
call it and then display the image, all from within a batch file.
mvantuyl please give me the link
There wasn't meant to be a link :confused:
Is there a good reason that you want this done in assembler and not use a higher level language (say C++?) Note that the asm code is using a bunch of Windows API calls (GetFileNameA, CreateFileA etc.) and parsing the header from the file. You can easily write this in a high level language as well.