News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

cant run my MASM program

Started by xdc, April 30, 2012, 04:15:59 AM

Previous topic - Next topic

xdc

I installed a disassembler just to see how it was, etc
One of the disassembler I installed had me install 'visual c++ redistributable x64'.

After which when I created my programs with masm, It would show a error when I went to ran it
http://desmond.imageshack.us/Himg254/scaled.php?server=254&filename=errorse.jpg&res=landing

Should be able to run like before no problem, I uninstalled the vc++ redist x64 packages, and the disassembler - it still does it.

It never did this before. I have windows 7 64-bit

dedndave

well - the code in the background...
.model small
.stack.....
is for a 16-bit program   :P

dedndave

try this...
        .586
        .MODEL  Flat,StdCall
        OPTION  CaseMap:None


xdc

    .386
    .model flat, c
    .code

start:
end start


I ran that, and any other example source for masm and it still does it

edit: I ran this:

        .586
        .MODEL  Flat,StdCall
        OPTION  CaseMap:None
    .code

start:
end start


still gives me the same error

dedndave

hmmm - you might have installed the redistributable for XP-64 or something

http://www.microsoft.com/en-us/download/details.aspx?id=13523

try uninstalling and re-installing

xdc

these are the recent installs:
http://i49.tinypic.com/35mgr5v.jpg

i already uninstalled, ill try

dedndave

the link i posted is for 2010 SP1  :U

xdc

i went back to restore point before the installs, came up with new error 'is not a valid win32 application',
then i updated ml.exe, and link.exe from VC/bin folder (visual c++ 2010), and the error is back again

dedndave

http://www.duxcore.com/contact.html

the "not a valid win32 application" error may be caused by not having the proper DLL's in place for the ML/LINK EXE's

for masm version 9
mspdb80.dll

for masm version 10
msvcr100.dll
mspdb100.dll

as i recall, the DLL's have to be path'ed
best if you put them in the same folder as the EXE, too

xdc

reinstalled masm32, visual c++ 2010 express, etc

tried with updated ml.exe/link.exe with the .dll from VC, etc still getting the two same error messages.

everything worked fine before :(
I hope i dont have to reinstall windows because of this...

dedndave

i wish i could be more help
but - the guy that wrote that program isn't a forum member   :P

as for the runtime redistributable, that is a standard package
you might google around to see if others using win7-64 have had similar issues
the cure may be something simple - you just have to do a lot of reading to find it

sinsi

The original problem looks to be because you are running 64-bit windows which won't let you run old DOS exe/com files (main.exe).
Light travels faster than sound, that's why some people seem bright until you hear them.

dedndave

searching a round a little, i see that others have had problems uninstalling that disassembler completely and/or correctly
maybe that's the issue

xdc

will installing windows 7 32-bit allow me to run these programs?

I only have 4 gigs of ram anyway, so to me I'm not losing anything. as long as I can conveniently run these programs

microsoft virtual windows xp gives me the same error,
dos box wont run 32 bit progs, etc

dedndave

some of the other win7-64 users have found methods to run 16-bit programs (DosBox i think)
if you go to a 32-bit OS, you won't be able to write code for or run 64-bit programs   :P

i guess you have to decide whether your machine is "up to" being a 64-bit machine or not
for example, my machine has a prescott CPU that will supposedly do 64-bit
but i doubt that it really has enough muscle to handle win 7-64
3 GHz prescott, 2 Gb RAM