From: Ian Chapman 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: Reply-To: ichapman AT nortel DOT ca NNTP-Posting-Host: bcarib90.bnr.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.