Article View: borland.public.cppbuilder.multimedia
Article #108Re: BCB5 SP1 fails to compile this simple example
From: Mark Jacobs
Date: Thu, 24 Mar 2005 13:12
Date: Thu, 24 Mar 2005 13:12
32 lines
2002 bytes
2002 bytes
Jim Dodd wrote:
>> It always complains about the line :-
>>
>> FOURCC fccType; // compressor type 'audc'
>>
>> E2303 Typename expected
>>
>> What have I done wrong?
>
>
> It doesn't look like you've included mmsystem.h which defines FOURCC.
> It looks like you expected either mmreg.h or msacm.h to include
> mmsystem.h - but they don't.
mmsystem.h is included by windows.h which is included by vcl.h :-
#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#ifndef _MAC
#include <lzexpand.h>
#include <mmsystem.h>
...
However, the include depends on the setting of WIN32_LEAN_AND_MEAN, which I
have defined in some modules. That was my problem - convoluted as usual ;-)
Thanks for your reply.
--
Mark Jacobs
http://www.dkcomputing.co.uk
Technical Details
Message-ID:
<4242bcb0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.astraweb.com!news-router2.astraweb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4241531b$1@newsgroups.borland.com> <4241896c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e03e3e617e4a61ea X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 24 Mar 2005 13:12:43 +0000 From: Mark Jacobs <http://www.jacobsm.com/mjmsg.htm?mj@critical> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: BCB5 SP1 fails to compile this simple example References: <4241531b$1@newsgroups.borland.com> <4241896c$1@newsgroups.borland.com> In-Reply-To: <4241896c$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.144.157.8 Message-ID: <4242bcb0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111669936 81.144.157.8 (24 Mar 2005 05:12:16 -0800) Lines: 32 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.astraweb.com!news-router2.astraweb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail