Pelles C forum

C language => Beginner questions => Topic started by: jcarr on May 25, 2007, 01:02:59 PM

Title: CreateFont Problem
Post by: jcarr on May 25, 2007, 01:02:59 PM
Hey,

ive only just started using PellesC after using Dev-C++... and i found that the following code wont compile in PellesC...  ???
Am i doing something wrong?
HFONT hFont = CreateFont(15,0,0,0,0,0,0,0,langStyle,0,0,0,0,"Verdana");
I get the following error:
Quote...\main.c(28): error #2069: Initializer must be constant.

Thanks in advance,

jcarr
Title: Re: CreateFont Problem
Post by: frankie on May 25, 2007, 04:27:01 PM
I don't see any problem.
Maybe the error comes from a previous line (missing bracket or semicolor or the like).
Create a piece of code as short as possible that gve the problem and post it.
Title: Re: CreateFont Problem
Post by: jcarr on May 26, 2007, 03:38:46 AM
Thanks anyway, i got it now..

I think it was where i was using it. All better now :D

jcar