delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/12/13:16:19

From: Ian Chapman <ichapman AT nortel DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PACKED situation
Date: Thu, 12 Mar 1998 12:41:47 -0500
Organization: Nortel
Message-ID: <35081E5B.44B8@nortel.ca>
References: <C12565C5 DOT 00576C6E DOT 00 AT vega DOT ads DOT it>
Reply-To: ichapman AT nortel DOT ca
NNTP-Posting-Host: bcarib90.bnr.ca
Mime-Version: 1.0
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi Giacomo,
	I've been into the mail archive in more detail over lunch.  Your
right.  The code is for c not c++ have to change from:

typedef struct { 
  DWORD style; 
  DWORD dwExtendedStyle; 
  short x; 
  short y; 
  short cx; 
  short cy; 
  WORD  id; 
} PACKED DLGITEMTEMPLATE; 

to:
typedef struct { 
  DWORD style	PACKED; 
  DWORD dwExtendedStyle	PACKED; 
  short x	PACKED; 
  short y	PACKED; 
  short cx	PACKED; 
  short cy	PACKED; 
  WORD  id	PACKED; 
}         DLGITEMTEMPLATE; 

	Oh well I'll have to get on with it.

		Regards Ian.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019