News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Bug Easycode struct problem BITMAPFILEHEADER

Started by costycnc, November 13, 2014, 09:56:43 AM

Previous topic - Next topic

costycnc

I see when create a structure first parameter  must be Dword for functioning....
If first parameter is declared word ... this parameter keep 4 octets and write 2 octets
Second parameter is written after 4 octets ... even if the first parameter is declared word

Example:



TEST Struct

Param1 DWord  ?
Param2 DWord  ?

TEST ENDS


Local pertest:TEST

mov pertest.Param1, "AA"
mov pertest.Param2, "BB"

Result of this struct  is : "A","A",0,0,"B","B"  and will be this ... "A","A","B","B"....  right?
Is bug?


Thanks !

TouEnMasm


Just a problem with the alignment of the stucture

Quote
BITMAPFILEHEADER   STRUCT WORD     ;DEFALIGNMASM
   bfType WORD ?
   bfSize DWORD ?
   bfReserved1 WORD ?
   bfReserved2 WORD ?
   bfOffBits DWORD ?
BITMAPFILEHEADER   

and all must be ok now !
Fa is a musical note to play with CL

rsala

Thanks ToutEnMasm!

Hi ostycnc,

The point is that specefied by ToutEnMasm. Easy Code is just the IDE but it does not compile the code since the code is compiled by the Microsfot Macro assembler (the ml.exe file in the Bin folder of tthe MASM32 package).

Regards,

Ramon
EC coder

costycnc

Thanks! Grazie mille !
You do not know how many nights lost to resolve this problem. Finally I made a dll in masm32, but when we moved on to win7 this dll that gave me errors.
Easy code is Great !!!
I need operate bitmap image directly in memory because getpixel an setpixel function is very slow in win7.
I hope to make something !
I made this program with Easycode !!! I love Easycode and Masm32 !!!
https://www.youtube.com/watch?v=ucu2LPLf-Vc
and result:
https://www.youtube.com/watch?v=AyWREB7ZoZA
Thanks again!

rsala

Hi costycnc,

Thanks for your kind words about Easy Code!

Regards.
EC coder

dedndave