The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: hfheatherfox07 on July 04, 2011, 11:26:59 PM

Title: MASM Version used in 2005
Post by: hfheatherfox07 on July 04, 2011, 11:26:59 PM
Hi I was wondering whether there is a difference between MASM Version used in 2005 and MASM10, which version was that , and can I get a copy....

What I mean Is would I get an error trying to assemble a program with this includes, and lib's from 2005 compare with MASM10

include windows.inc
include gdi32.inc
include user32.inc
include kernel32.inc
include Comctl32.inc
include masm32.inc
include ole32.inc
include oleaut32.inc
include advapi32.inc

includelib gdi32.lib
includelib user32.lib
includelib kernel32.lib
includelib Comctl32.lib
includelib masm32.lib
includelib ole32.lib
includelib oleaut32.lib
includelib advapi32.lib

The author of this Program does not wish for some one to redistribute it so I wont post all my tries but , I am having trouble with "unies", just wont work, I modified it , it runs but still wont uninstall....

I tried all 3 revision r2,r3,and r4

http://code.google.com/p/eis/source/browse/trunk/?r=2

http://code.google.com/p/eis/source/browse/trunk/?r=3

http://code.google.com/p/eis/source/browse/trunk/?r=4



Thank You
Title: Re: MASM Version used in 2005
Post by: bomz on July 04, 2011, 11:29:44 PM
include \MASM32\INCLUDE\kernel32.inc
includelib \MASM32\LIB\user32.lib


ECHO OFF
COLOR 9F
CLS
cd /d %~dp1
C:\masm32\bin\ml.exe /c /coff "%~1"
C:\masm32\bin\link.exe /subsystem:windows "%~n1.obj"
del "%~n1.obj"
pause


the difference between masm9 and masm10 exists. still use one of it to exclude confusion
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 04, 2011, 11:42:03 PM
Is that what masm 2005 is MASM9 ? I thought it was older....

I know that imagehlp.inc in MASM9 was used for  MapFileAndCheckSum... so if you are doing that you need it ...but I dont know about the rest?
Title: Re: MASM Version used in 2005
Post by: bomz on July 04, 2011, 11:52:59 PM
for masm10 I download ImageHlp from internet

put it in \MASM32\LIB\
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 05, 2011, 12:21:14 AM
Quote from: bomz on July 04, 2011, 11:52:59 PM
for masm10 I download ImageHlp from internet

put it in \MASM32\LIB\


I already have It thanks....needed it for MapFileAndCheckSum project, I meant I knew that was 1 difference between MASM9 and MASM10 I was wundering about MASM that was used in 2005 what version was it ? and were there differences that would cause errors with these includes and lib;s :


include windows.inc
include gdi32.inc
include user32.inc
include kernel32.inc
include Comctl32.inc
include masm32.inc
include ole32.inc
include oleaut32.inc
include advapi32.inc

includelib gdi32.lib
includelib user32.lib
includelib kernel32.lib
includelib Comctl32.lib
includelib masm32.lib
includelib ole32.lib
includelib oleaut32.lib
includelib advapi32.lib


Hutch would know
Title: Re: MASM Version used in 2005
Post by: Gunner on July 05, 2011, 12:27:14 AM
What errors are you getting?  The include files should have nothing to do with MASM 1,2,3 etc...  they are only a bunch of structures, equates, protos etc...  Without knowing the errors you are getting it is hard to tell the problem..
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 05, 2011, 12:32:02 AM
Quote from: Gunner on July 05, 2011, 12:27:14 AM
What errors are you getting?  The include files should have nothing to do with MASM 1,2,3 etc...  they are only a bunch of structures, equates, protos etc...  Without knowing the errors you are getting it is hard to tell the problem..


Right here in line 79
http://code.google.com/p/eis/source/browse/trunk/uneis/uneis.asm?r=4

I changed : LOCAL PropHdr:PROPSHEETHEADER    To: LOCAL PropHdr:PROPSHEETHEADERA
( if I recall off the top of my head)
And it works, but no unistall....

http://eis.googlecode.com/svn-history/r4/trunk/_DISTRIBUTE/eissrc1301.RAR

assemble it and see
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 05, 2011, 01:25:55 AM
Wow I actually found it , if I am not wrong it was masm611

and you can still download it ..... I will try it tonight LOL for fun  :lol
Title: Re: MASM Version used in 2005
Post by: GregL on July 06, 2011, 02:44:55 AM
VC 6.0 (1998) used MASM 6.0, VC 2002 used MASM 7.0, VC 2003 used MASM 7.1, VC 2005 used MASM 8.0, VC 2008 used MASM 9.0 and VC 2010 used MASM 10.0.

Various updates changed 6.0 to 6.1, 6.11, 6.12, 6.13, 6.14 and 6.15.
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 06, 2011, 02:49:04 AM
Quote from: GregL on July 06, 2011, 02:44:55 AM
VC 6.0 (1998) used MASM 6.0, VC 2002 used MASM 7.0, VC 2003 used MASM 7.1, VC 2005 used MASM 8.0, VC 2008 used MASM 9.0 and VC 2010 used MASM 10.0.

Various updates changed 6.0 to 6.1, 6.12, 6.13, 6.14 and 6.15.


Thank you .....So much

P.S

I still found a working masm611 download .... how cool
Title: Re: MASM Version used in 2005
Post by: dedndave on July 06, 2011, 03:34:06 AM
i have to think that PROPSHEETHEADER is not defined as a structure
the syntax looks fine and should assemble regardless of the version

well - maybe the rules for defining structures have changed   :P
Title: Re: MASM Version used in 2005
Post by: donkey on July 06, 2011, 11:44:39 AM
In 2005 version 8 was in use, it is apparently still available for download from Microsoft:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=12654
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 12:53:22 AM
Quote from: donkey on July 06, 2011, 11:44:39 AM
In 2005 version 8 was in use, it is apparently still available for download from Microsoft:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=12654


there are still links to MASMv8 from Hutch
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 01:14:03 AM
Quote from: dedndave on July 06, 2011, 03:34:06 AM
i have to think that PROPSHEETHEADER is not defined as a structure
the syntax looks fine and should assemble regardless of the version

well - maybe the rules for defining structures have changed   :P

I have MASMv8 and I tried it...apparently that makes a difference ..."PROPSHEETHEADER" does not work with MASMv9 or 10 ...you need "PROPSHEETHEADERA"
however when I assembled it with MASMv8 "PROPSHEETHEADER"  works.... I had the same problem with "ws_fprintf" and "ws_fprintfA" ...wsprintfA    ::)
Title: Re: MASM Version used in 2005
Post by: MichaelW on July 07, 2011, 01:29:47 AM
Without an equate to PROPSHEETHEADERA, that AFAIK the MASM32 windows.inc has never included, PROPSHEETHEADER should not work, regardless of the MASM version.
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 02:00:11 AM
Quote from: MichaelW on July 07, 2011, 01:29:47 AM
Without an equate to PROPSHEETHEADERA, that AFAIK the MASM32 windows.inc has never included, PROPSHEETHEADER should not work, regardless of the MASM version.



It seems to....?????
Title: Re: MASM Version used in 2005
Post by: dedndave on July 07, 2011, 09:29:41 AM
the structure is defined in windows.inc
PROPSHEETHEADERA STRUCT
        dwSize              DWORD ?
        dwFlags             DWORD ?         
        hwndParent          DWORD ?           
        hInstance           DWORD ?     
        union
            hIcon           DWORD ?
            pszIcon         DWORD ?
        ends
        pszCaption          DWORD ?
        nPages              DWORD ?
          union
            nStartPage      DWORD ?
            pStartPage      DWORD ?   
          ends
          union
            ppsp            DWORD ?
            phpage          DWORD ?
          ends
        pfnCallback         DWORD ?
          union
            hbmWatermark    DWORD ?
            pszbmWatermark  DWORD ?
          ends
        hplWatermark        DWORD ?
        union
            hbmHeader       DWORD ?
            pszbmHeader     DWORD ?
        ends

PROPSHEETHEADERA ENDS


i don't find PROPSHEETHEADER
you are somehow changing more than the MASM version   :P
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 07:17:40 PM
Look down after PROPSHEETHEADERA ENDS

you should see:

PROPSHEETHEADER         equ   <PROPSHEETHEADERA>
LPPROPSHEETHEADER       equ   <LPPROPSHEETHEADERA>

LPCPROPSHEETHEADER      equ   <LPCPROPSHEETHEADERA>
PROPSHEETHEADER_V1_SIZE equ   <PROPSHEETHEADERA_V1_SIZE>

PSCB_INITIALIZED        equ   1
PSCB_PRECREATE          equ   2

CreatePropertySheetPage equ   <CreatePropertySheetPageA>
PropertySheet           equ   <PropertySheetA>


That is in MASMv8 VS MASMv9 and 10
Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 07:19:31 PM
I would upload the MASMv8 that I have but  I don't know if that would upset Hutch  ::)
Title: Re: MASM Version used in 2005
Post by: MichaelW on July 07, 2011, 08:32:12 PM
What do you mean by MASMv8? The windows.inc that you posted is a MASM32 include file that was included with some older version of MASM32 package. Now that I check the equate is present in the oldest version that I have installed, the 1.28 release apparently from 2005, but not in the later versions.









Title: Re: MASM Version used in 2005
Post by: hfheatherfox07 on July 07, 2011, 08:34:17 PM
Quote from: MichaelW on July 07, 2011, 08:32:12 PM
What do you mean by MASMv8? The windows.inc that you posted is a MASM32 include file that was included with some older version of MASM32 package. The equate is present in the oldest version that I have installed, the 1.28 release apparently from 2005, but not in the later versions.












Yes ...my original question was that I found a source compiled in 2005 and it would not work with the MASMv10....that it exactly it!
Title: Re: MASM Version used in 2005
Post by: dedndave on July 08, 2011, 02:05:22 AM
 :P
ok
this has nothing to do with the masm version
it has to do with the windows.inc file
masm does not come with a windows.inc file   :P
the EQUate should probably be there, but seems to be missing from the most recent one in the masm32 package