C language > Beginner questions

CreateFont Problem

(1/1)

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?

--- Code: ---HFONT hFont = CreateFont(15,0,0,0,0,0,0,0,langStyle,0,0,0,0,"Verdana");
--- End code ---
I get the following error:

--- Quote ---...\main.c(28): error #2069: Initializer must be constant.
--- End quote ---

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.

jcarr:
Thanks anyway, i got it now..

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

jcar

Navigation

[0] Message Index

Go to full version