Also can u post me the modified version of my program ?
My mistake, I've attached someone else's work, you should have noticed hehe ...
This is the correct file :)
Regards,
Mariano.
:alright:
This is the correct file :)
Regards,
Mariano.
:alright:
thankyou but the file size is comparatively huge 8-} its 39 kb compared to 2.5 kb for a normal masm output
how did u compile the asm file using the QEDITOR gui menu or command line??
If Commandline then give details
If Commandline then give details
when i compile ur project on my pc i get the following error:
"LINK : fatal error LNK1104: cannot open file "LIBCD.lib"
"LINK : fatal error LNK1104: cannot open file "LIBCD.lib"
Have you seen the exe file that I sent to you in the .rar file?
static.exe is 2560 bytes... you should have compiled and linked without the arguments that I told you yesterday.
cl /c stdafx.cpp
lib /nodefaultlib stdafx.obj
then copy the stdafx.lib to the folder where is static.cpp
(I've done it and the stdafx.lib is 736 bytes long)
finally ml /c /Cp /coff static.asm
link static.obj /subsystem:console /nodefaultlib user32.lib kernel32.lib stdafx.lib
(I've done it and the static.exe is 2560 bytes long)
Regards,
Mariano.
:alright:
static.exe is 2560 bytes... you should have compiled and linked without the arguments that I told you yesterday.
cl /c stdafx.cpp
lib /nodefaultlib stdafx.obj
then copy the stdafx.lib to the folder where is static.cpp
(I've done it and the stdafx.lib is 736 bytes long)
finally ml /c /Cp /coff static.asm
link static.obj /subsystem:console /nodefaultlib user32.lib kernel32.lib stdafx.lib
(I've done it and the static.exe is 2560 bytes long)
Regards,
Mariano.
:alright:
Getting Another error now
"static1.lib(StdAfx.obj) : error LNK2001: unresolved external symbol __chkesp
static.exe : fatal error LNK1120: 1 unresolved externals"
"static1.lib(StdAfx.obj) : error LNK2001: unresolved external symbol __chkesp
static.exe : fatal error LNK1120: 1 unresolved externals"
Read again my last post, there isn't any mention to static1.lib, you could delete that file if you want.
Regards,
Mariano.
:alright:
Regards,
Mariano.
:alright:
Cant find "cl.exe" in MASM bin directory and is the "lib.exe" the same as that in the MASM bin directory
Cl.exe is the Microsoft VC++ Compiler so you should look for it (and also for the lib.exe but the masm will work perfectly too as far as I know) in the VC++ bin directory.
Alternative: find and execute vcvars32.bat (from a dos box). All VC++ tools will have their paths set. So you could call cl from any directory.
Regards,
Mariano.
:alright:
Alternative: find and execute vcvars32.bat (from a dos box). All VC++ tools will have their paths set. So you could call cl from any directory.
Regards,
Mariano.
:alright:
Hey! thkx it worked out and an exe of 2.5 kb only!!!!
but is there any way i can use a gui rather than this Command Line INterface coz its difficult to type it in always and for many projects the same thing over and over again
but is there any way i can use a gui rather than this Command Line INterface coz its difficult to type it in always and for many projects the same thing over and over again
What I do is to write a makefile.bat with the instructions that I want ... but I think that there is a dialog in the VC++ IDE where you can specify those options but I don't remember because I don't use the IDE anymore.
Regards,
Mariano.
:alright:
Regards,
Mariano.
:alright: