Xref: news2.mv.net comp.os.msdos.djgpp:8090 From: istvan AT outer-net DOT com (Stephen Marton) Newsgroups: comp.os.msdos.djgpp Subject: strange parse error Date: Fri, 30 Aug 1996 22:08:52 GMT Organization: HookUp Communication Corporation, Oakville, Ontario, CANADA Lines: 33 Message-ID: <507s49$iaq@loki.tor.hookup.net> NNTP-Posting-Host: outer-net.com NNTP-Posting-User: istvan To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I wrote a header file made up of pieces of code from a tutorial on VESA programming. I had a lot of errors at the first compilation, but I fixed all of them, except the last line in this piece of code: .... short OffScreenMemSize; char res2[206] PACKED; }VBE_ModeInfo; #pragma pack() int bytesperline = VBE_ModeInfo.Max_X * VBE_ModeInfo.BitsPerPixel; .... The compiler (djgpp) displayed: " parse error before 'VBE_ModeInfo' " as well as for this piece of code: .... int curbank=0; void setbank(int bank) { __dpmi_regs regs; if (bank == curbank) return; curbank = bank; bank <<= VBE_ModeInfo.WinGranularity; .... I have no idea what seems to be wrong with this code, so if anyone does, please help me. Also, if more code is needed to figure it out, don't hesitate to ask me. Thanks in advance. Steve Marton