News:

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

ml.exe version 8

Started by ossama, December 17, 2007, 07:51:24 PM

Previous topic - Next topic

ossama

hello,
i tried to use ml.exe version 8,but when i was being testing it with a simple asm code (hello world) it shows an error like this:
\masm32\include\windows.inc(17530) : error A2138: invalid data initializer
this code was working using the version 6 of ml.exe
what is going on?

Mark Jones

Ossama, there is little advantage to using the newer MASM executable. My recommendation is, if you need a feature not available in the public release of MASM32, then look at Jeremy Gordon's excellent GoASM assembler. Donkey has libraries on his website which make GoASM very similar to MASM32.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

NightWare

Quote from: ossama on December 17, 2007, 07:51:24 PM
\masm32\include\windows.inc(17530) : error A2138: invalid data initializer
just some correction to made, there is few correction to make, and those corrections also work for version 6...

hutch--

ossama,

Get the later version of windows.inc from the masm32 subforum, it had to be modified for ML.EXE version 8 because the later version has a couple of errors in it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ossama

Quote from: hutch-- on December 18, 2007, 12:13:10 AM
ossama,

Get the later version of windows.inc from the masm32 subforum, it had to be modified for ML.EXE version 8 because the later version has a couple of errors in it.
so do we need an updated pakage of masm32?
or,
do we really need the new version of ml.exe,i mean what are the new features in the new version?

ToutEnMasm


ossama

Quote from: hutch-- on December 18, 2007, 12:13:10 AM
ossama,

Get the later version of windows.inc from the masm32 subforum, it had to be modified for ML.EXE version 8 because the later version has a couple of errors in it.

do you mean that ml.exe version 8 has errors or the errors are in the old windows.inc?

hutch--

ML.EXE version 8.0 has a share of problems, you can get around most of them most of the time but the problem was ML.EXE version 8.0 could not handle the record format properly, like 7.0 ans later it cannot handle *.asm command lines and it has a number of errors with complex addressing mode addressing.

WINDOWS.INC was fixed so it would run OK.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ToutEnMasm

Hello,
I have compiled sources codes with ml 8 and windows.inc (the last in two parts) without problems.I have put here samples using directx and microsoft sdk,compiled with them.

The old windows.inc has many errors in it,that's true.
The new ml 8 go to crash when there is errors in include files (send reports to microsoft).
Records are very bad designed because there defined names are globals in the source instead of be locals  as in structure.
I wait for a sample of record that keep his def locals.

What I am certain,is that your problem with the messagebox come with the old windows.inc and not ml 8.

Is there an answer ?,yes.

Don't mix old and new versions of ml,link,cl ... to compile a source.





ossama

what are the enhancements in the ml.exe version 8 that are not in the version 6?
knowing this will tell me if i have to change to version 8 or not,
or what do you suggest?