News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

CreateFont Problem

Started by jcarr, May 25, 2007, 01:02:59 PM

Previous topic - Next topic

jcarr

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

frankie

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.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

jcarr

Thanks anyway, i got it now..

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

jcar