X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: hhkraemer AT web DOT de (Horst Kraemer) Newsgroups: comp.os.msdos.djgpp Subject: Re: porting from djgpp to msvc Date: Fri, 28 Dec 2001 16:51:53 GMT Lines: 24 Message-ID: <3c2ca2d9.616846@news.cis.dfn.de> References: <3C2C4AC6 DOT 364DC2A AT polbox DOT com> NNTP-Posting-Host: pd9501acf.dip0.t-ipconnect.de (217.80.26.207) X-Trace: fu-berlin.de 1009558313 22036758 217.80.26.207 (16 [27606]) X-Newsreader: Forte Free Agent 1.21/32.243 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 28 Dec 2001 11:34:46 +0100, cmapworx wrote: > hi, while porting some code of my code from djgpp to msvc i got two > error messages: > code was compiling and working fine under djgpp. > > 1. in a sample statement (trying to allocate vector of pointers to > BITMAP): > > BITMAP **frames; > frames = new (BITMAP *)[15]; > > syntax error: missing ';' before '[' This should not compile in DJGPP either. The correct C++ syntax is frames = new BITMAP*[15]; _without_ parentheses. Regards Horst