Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages...

Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages...

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Redeemer dk
    wrote on last edited by
    #1

    when i compile, i all of the sudden get all these messages: d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2660: 'ReadFile' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ';' before '&&' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2660: 'recv' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2059: syntax error : ')' The first error message directs me to this line:

    szFileBuffer = (char *)malloc(SEND_BUFFER_SIZE);

    what is wrong with that? there's no ) missing and the "ReadFile function does not take 3 parameters" directs me here:

    ReadFile(hFile, szFileBuffer, SEND_BUFFER_SIZE, &dwBytesRead, NULL);

    there isn't threee parameters there, there are five! i don't understand it... and all of the other error messages are wrong too, i'm not missing an ')' or an ';' in any of the places, what could be wrong? thanks -Rune Svendsen

    T A 2 Replies Last reply
    0
    • R Redeemer dk

      when i compile, i all of the sudden get all these messages: d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2660: 'ReadFile' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ';' before '&&' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2660: 'recv' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2059: syntax error : ')' The first error message directs me to this line:

      szFileBuffer = (char *)malloc(SEND_BUFFER_SIZE);

      what is wrong with that? there's no ) missing and the "ReadFile function does not take 3 parameters" directs me here:

      ReadFile(hFile, szFileBuffer, SEND_BUFFER_SIZE, &dwBytesRead, NULL);

      there isn't threee parameters there, there are five! i don't understand it... and all of the other error messages are wrong too, i'm not missing an ')' or an ';' in any of the places, what could be wrong? thanks -Rune Svendsen

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Post the #define SEND_BUFFER_SIZE line. Tomasz Sowinski -- http://www.shooltz.com

      *** Purgamentum init, exit purgamentum ***

      A 1 Reply Last reply
      0
      • R Redeemer dk

        when i compile, i all of the sudden get all these messages: d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2660: 'ReadFile' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ';' before '&&' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2059: syntax error : ')' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ')' before ';' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2660: 'recv' : function does not take 3 parameters d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ';' before ',' d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2059: syntax error : ')' The first error message directs me to this line:

        szFileBuffer = (char *)malloc(SEND_BUFFER_SIZE);

        what is wrong with that? there's no ) missing and the "ReadFile function does not take 3 parameters" directs me here:

        ReadFile(hFile, szFileBuffer, SEND_BUFFER_SIZE, &dwBytesRead, NULL);

        there isn't threee parameters there, there are five! i don't understand it... and all of the other error messages are wrong too, i'm not missing an ')' or an ';' in any of the places, what could be wrong? thanks -Rune Svendsen

        A Offline
        A Offline
        Andreas Saurwein
        wrote on last edited by
        #3

        I suppose the SEND_BUFFER_SIZE looks like this

        #define SEND_BUFFER_SIZE 100;

        This would introduce errors of this kind. I keep submitting “VB” as a Priority-1 bug, but apparently no one here knows how to fix it. Nick Hodapp, Semicolon

        1 Reply Last reply
        0
        • T Tomasz Sowinski

          Post the #define SEND_BUFFER_SIZE line. Tomasz Sowinski -- http://www.shooltz.com

          *** Purgamentum init, exit purgamentum ***

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          It's #define SEND_BUFFER_SIZE 8192; it's the ; that made the errors, thanks to both of you.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups