Errors:Code:#include <windows.h> #include <vector> #define ourKey VK_CONTROL typedef std:: vector< char > file; file.push_back('myfile.txt'); file.push_back('myfile2.txt'); file.push_back('pop_c.txt'); int i=0; int main ( ) { if ( GetAsyncKeyState( ourKey ) <= -32767 ) { bool KeyPress = true; } else bool KeyPress = false; if ( KeyPress == false ) keybd_event( ourKey, ); for ( i; i<=file.size(); i++ ) { CreateFile( file[i] , GENERIC_WRITE, 0x00000002, NULL, 2, 0x80, NULL ); } }
Dunno what happened, :S can someone help?Code:(5) : error C2143: syntax error : missing ';' before '.' (5) : error C2059: syntax error : '.' (5) : error C2015: too many characters in constant (6) : error C2143: syntax error : missing ';' before '.' (6) : error C2059: syntax error : '.' (6) : error C2015: too many characters in constant (7) : error C2143: syntax error : missing ';' before '.' (7) : error C2059: syntax error : '.' (7) : error C2015: too many characters in constant (16) : error C2275: 'file' : illegal use of this type as an expression 1> (3) : see declaration of 'file' (19) : error C2275: 'file' : illegal use of this type as an expression 1> (3) : see declaration of 'file'



LinkBack URL
About LinkBacks



