delorie.com/archives/browse.cgi | search |
From: | Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: PACKED situation |
Date: | Thu, 12 Mar 1998 21:16:19 +0100 |
Organization: | Lehrstuhl fuer Stroemungsmechanik |
Lines: | 55 |
Message-ID: | <35084293.10476FA6@LSTM.Ruhr-UNI-Bochum.De> |
References: | <3507D629 DOT 73E2 AT nortel DOT ca> |
NNTP-Posting-Host: | bvb.lstm.ruhr-uni-bochum.de |
Mime-Version: | 1.0 |
Xcanpos: | shelf.01/199803270101!0011274335 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Ian Chapman wrote: > > Hi all, > standard problem with PACKED taken from faq. > It's a bug in a version of djgpp which according to the faq s been fixed > in the djdev201.zip version. The faq says that the structure gets > messed up. I get the error below where the ";" is stated as missing. > I've been running djdev201.zip derived files for about a year. So > version should not be my problem. [...] > > So I tried this and still get the error:- > #ifdef __cplusplus > #pragma Pack(1) This should read #pragma pack(1) Anyway, don't you want to pack this in C, too? > #endif > typedef struct { > DWORD style; > DWORD dwExtendedStyle; > short x; > short y; > short cx; > short cy; > WORD id; > } PACKED DLGITEMTEMPLATE; //Error ; missing after struct declaration. Omit "PACKED" > #ifdef __cplusplus > #pragma Pack() > #endif Same here: lower case pack. Hope my news reader will allow this answer ;-) -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |