dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: error C2059: syntax error : '}'

  1. #1
    Join Date
    Feb 2010
    Posts
    18

    error C2059: syntax error : '}'

    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)
    {
    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 have included all necessary header.

    plz help..

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,581

    Re: error C2059: syntax error : '}'

    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2005
    Posts
    2,160

    Re: error C2059: syntax error : '}'

    See my response here:

    http://www.codeguru.com/forum/showthread.php?t=497794

    Please don't post the same question in two different forums.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)