flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Error in WINDOWPOS structure for 64-bit

Author
Thread Post new topic Reply to topic
JPowersFairfax



Joined: 25 Jan 2012
Posts: 9
JPowersFairfax
I'm using version 1.70.03 and there's an error in "EQUATES\USER64.INC". The "hwnd" and "hwndInsertAfter" parameters are DWORDS and should be QWORDS.
Post 08 Jan 2014, 18:30
View user's profile Send private message Visit poster's website Reply with quote
JPowersFairfax



Joined: 25 Jan 2012
Posts: 9
JPowersFairfax
I just found a similar problem in the 64-bit MENUITEMINFO structure. Is this the correct place to be posting these issues, or should I email someone directly?

The 64-bit MENUITEMINFO structure should be:

Code:
struct MENUITEMINFO
  cbSize        dd ?
  fMask         dd ?
  fType         dd ?
  fState        dd ?
  wID           dd ?,?
  hSubMenu      dq ?
  hbmpChecked   dq ?
  hbmpUnchecked dq ?
  dwItemData    dq ?
  dwTypeData    dq ?
  cch           dd ?,?
  hbmpItem      dq ?
ends
    
Post 09 Jan 2014, 17:24
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7756
Location: Kraków, Poland
Tomasz Grysztar
JPowersFairfax wrote:
Is this the correct place to be posting these issues, or should I email someone directly?
It is a good place, I will upload the corrected package soon.
Post 09 Jan 2014, 18:19
View user's profile Send private message Visit poster's website Reply with quote
m3ntal



Joined: 08 Dec 2013
Posts: 296
m3ntal
I prefer words like void/da for portable address-size variables, pointers and handles. Otherwise, they must be edited for different systems and are vulnerable to typos.
Code:
; standard: specific, not portable

hwnd dw 0 ; I16, ARM32
hwnd dd 0 ; I32
hwnd dq 0 ; I64

; portable: works for all systems: 16/32/64

hwnd da 0 ; "define address"
void hwnd ; or this syntax: void a,b,c    
Post 10 Jan 2014, 13:50
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.