Also can u post me the modified version of my program ?
Posted on 2004-04-14 05:40:47 by telophase
My mistake, I've attached someone else's work, you should have noticed hehe ...

This is the correct file :)

Regards,
Mariano.

:alright:
Posted on 2004-04-14 05:43:27 by Eternal Idol Birmingham
thankyou but the file size is comparatively huge 8-} its 39 kb compared to 2.5 kb for a normal masm output
Posted on 2004-04-14 05:48:25 by telophase
how did u compile the asm file using the QEDITOR gui menu or command line??

If Commandline then give details
Posted on 2004-04-14 05:51:51 by telophase
when i compile ur project on my pc i get the following error:
"LINK : fatal error LNK1104: cannot open file "LIBCD.lib"
Posted on 2004-04-14 05:53:32 by telophase
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:
Posted on 2004-04-14 05:56:31 by Eternal Idol Birmingham
Getting Another error now

"static1.lib(StdAfx.obj) : error LNK2001: unresolved external symbol __chkesp
static.exe : fatal error LNK1120: 1 unresolved externals"
Posted on 2004-04-14 06:17:31 by telophase
Read again my last post, there isn't any mention to static1.lib, you could delete that file if you want.

Regards,
Mariano.

:alright:
Posted on 2004-04-14 06:20:41 by Eternal Idol Birmingham
Cant find "cl.exe" in MASM bin directory and is the "lib.exe" the same as that in the MASM bin directory
Posted on 2004-04-14 06:24:37 by telophase
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:
Posted on 2004-04-14 06:29:50 by Eternal Idol Birmingham
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
Posted on 2004-04-14 06:51:18 by telophase
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:
Posted on 2004-04-14 06:53:19 by Eternal Idol Birmingham