The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ossama on December 17, 2007, 07:51:24 PM

Title: ml.exe version 8
Post by: ossama on December 17, 2007, 07:51:24 PM
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?
Title: Re: ml.exe version 8
Post by: Mark Jones on December 17, 2007, 09:10:48 PM
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.
Title: Re: ml.exe version 8
Post by: NightWare on December 17, 2007, 11:24:41 PM
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...
Title: Re: ml.exe version 8
Post by: 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.
Title: Re: ml.exe version 8
Post by: ossama on December 18, 2007, 06:38:00 PM
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?
Title: Re: ml.exe version 8
Post by: ToutEnMasm on December 18, 2007, 06:55:31 PM
This mean go
http://www.masm32.com/board/index.php?topic=7677.msg56435#msg56435
Title: Re: ml.exe version 8
Post by: ossama on December 18, 2007, 07:57:55 PM
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?
Title: Re: ml.exe version 8
Post by: hutch-- on December 19, 2007, 11:39:03 AM
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.
Title: Re: ml.exe version 8
Post by: ToutEnMasm on December 19, 2007, 02:31:56 PM
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.




Title: Re: ml.exe version 8
Post by: ossama on December 20, 2007, 03:30:18 PM
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?