Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages...
-
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
-
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
Post the #define SEND_BUFFER_SIZE line. Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
-
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
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
-
Post the #define SEND_BUFFER_SIZE line. Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***