shri1609
May 24th, 2010, 05:06 AM
hi,
I am creating a GUI using VC++ as compiler, i have all C files. In one of the file where i created blank windows frame work(i created blank window). for write pixel i'm using a function(as application needs). so i included following function in windos frame work code and i'm getting the error :
error C2143: syntax error : missing ';' before 'type'
error C2059: syntax error : '}'
function
extern void Line(Coord,Coord,Coord,Coord,Color)
{
int x1,y1,xe1,ye1;
MoveToEx(hDC,xe,ye,NULL);
LineTo(hDC,x,y);
}
i am getting first error at start of function, and 2nd at end of the function line.
I am creating a GUI using VC++ as compiler, i have all C files. In one of the file where i created blank windows frame work(i created blank window). for write pixel i'm using a function(as application needs). so i included following function in windos frame work code and i'm getting the error :
error C2143: syntax error : missing ';' before 'type'
error C2059: syntax error : '}'
function
extern void Line(Coord,Coord,Coord,Coord,Color)
{
int x1,y1,xe1,ye1;
MoveToEx(hDC,xe,ye,NULL);
LineTo(hDC,x,y);
}
i am getting first error at start of function, and 2nd at end of the function line.