News:

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

Struct questions

Started by Jimg, April 20, 2007, 02:26:09 AM

Previous topic - Next topic

hutch--

Just a quick look at what I can find on the net from Microsoft I get this structure in C (I removed the #ifdef for the MAC) which converts to MASM something like as follows.


typedef union FARSTRUCT tagCY {
    struct {         
        unsigned long Lo;
        long          Hi;
        };               
    LONGLONG int64; 
} CY;

CY UNION
  STRUCT
    Lo DWORD ?
    Hi DWORD ?
  ENDS
  int64 QWORD ?
CY ENDS
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Biterider

Hi Hutch
Sorry to come again with this issue but the WinExtra.inc contains the following definition

CY STRUCT
    struct
        Lo dd ?
        Hi dd ?
    ENDS
    int64 dq ?
CY ENDS


Pleace take note for the next release.

Regards,

Biterider

hutch--

Biterider,

Thanks, I already have it in this form in the reference set. I just have not released another version yet.


CY UNION
  STRUCT
    Lo DWORD ?
    Hi DWORD ?
  ENDS
  int64 QWORD ?
CY ENDS

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php