Witam.
Korzystam z programu Ms Visual c++ express
Zrobiłem panel logowania, robiłem wszystko jak w poradniku - http://zarabiam.com/Temat-Programowanie … ania-39666
Kliknąłem 2x na przycisk który ma potwierdzać
i wkleiłem skrypt :
If TextBox1.Text = "uzytkownik" And TextBox2.Text = "haslo" Then
Form2.Show()
Else
MsgBox("Sorry, username or password not found! Try again!", MsgBoxStyle.OkOnly, "Error")
End If
I wywala takie błedy :
Error 6 error C2065: ‘And’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 334
Error 16 error C2065: ‘Else’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 337
Error 22 error C2065: ‘End’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 339
Error 13 error C2065: ‘Form2’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 335
Error 1 error C2065: ‘If’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 334
Error 24 error C2065: ‘If’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 339
Error 18 error C2065: ‘MsgBoxStyle’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 337
Error 3 error C2065: ‘TextBox1’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 334
Error 8 error C2065: ‘TextBox2’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 334
Error 11 error C2065: ‘Then’ : undeclared identifier e:\gry\mojagra\test\test\Form1.h 335
Error 25 error C2143: syntax error : missing ‘;’ before ‘}’ e:\gry\mojagra\test\test\Form1.h 339
Error 5 error C2146: syntax error : missing ‘;’ before identifier ‘And’ e:\gry\mojagra\test\test\Form1.h 334
Error 15 error C2146: syntax error : missing ‘;’ before identifier ‘Else’ e:\gry\mojagra\test\test\Form1.h 337
Error 20 error C2146: syntax error : missing ‘;’ before identifier ‘End’ e:\gry\mojagra\test\test\Form1.h 338
Error 12 error C2146: syntax error : missing ‘;’ before identifier ‘Form2’ e:\gry\mojagra\test\test\Form1.h 335
Error 23 error C2146: syntax error : missing ‘;’ before identifier ‘If’ e:\gry\mojagra\test\test\Form1.h 339
Error 17 error C2146: syntax error : missing ‘;’ before identifier ‘MsgBox’ e:\gry\mojagra\test\test\Form1.h 337
Error 2 error C2146: syntax error : missing ‘;’ before identifier ‘TextBox1’ e:\gry\mojagra\test\test\Form1.h 334
Error 7 error C2146: syntax error : missing ‘;’ before identifier ‘TextBox2’ e:\gry\mojagra\test\test\Form1.h 334
Error 10 error C2146: syntax error : missing ‘;’ before identifier ‘Then’ e:\gry\mojagra\test\test\Form1.h 335
Error 19 error C2228: left of ‘.OkOnly’ must have class/struct/union e:\gry\mojagra\test\test\Form1.h 337
Error 14 error C2228: left of ‘.Show’ must have class/struct/union e:\gry\mojagra\test\test\Form1.h 335
Error 4 error C2228: left of ‘.Text’ must have class/struct/union e:\gry\mojagra\test\test\Form1.h 334
Error 9 error C2228: left of ‘.Text’ must have class/struct/union e:\gry\mojagra\test\test\Form1.h 334
Error 21 error C3861: ‘MsgBox’: identifier not found e:\gry\mojagra\test\test\Form1.h 337