NO

Author Topic: CreateFont Problem  (Read 3170 times)

jcarr

  • Guest
CreateFont Problem
« 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?
Code: [Select]
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

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: CreateFont Problem
« Reply #1 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.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

jcarr

  • Guest
Re: CreateFont Problem
« Reply #2 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