Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Darkc0der Darkc0der is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 598
Rep Power: 14
Darkc0der mempunyai hidup yang Normal
Default [HELP] Coding Tombol 'Back' di Visual C++ error

Permisi gan...



ane lagi coba bikin aplikasi pake Visual C++ 2008,,di aplikasi yg ane buat itu ada tombol 'Next', 'Back', sama 'Cancel'...nah yang bermasalah tuh pas ane bikin tombol 'Back'...bayak errornya...



ane pake logika yg sama buat bikin tombol 'Next' dan itu berjalan dengan baik...



oya sebelumnya...aplikasi yg ane buat ini terdiri dari beberapa form...






Spoiler for Button Next:






private: System::Void bNext_Click(System::Object^ sender, System::EventArgs^ e) {

Form2::Visible = false;

Form3^ next=gcnew Form3();

next->Show();

}











yg diatas (button next) running tanpa error gan...




Spoiler for Button Back/Previous:






private: System::Void bPrev_Click(System::Object^ sender, System::EventArgs^ e) {

Form2::Visible = false;

Form1^ back=gcnew Form1();

back->Show();

}











nah yang ini (button back) baru menghasilkan error seperti ini :




Spoiler for Error:






Error 1 error C2065: 'Form1' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245

Error 2 error C2065: 'back' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245

Error 3 error C2061: syntax error : identifier 'Form1' c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245

Error 4 error C2065: 'back' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 246

Error 5 error C2227: left of '->Show' must point to class/struct/union/generic type c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 246

Error 6 error C2065: 'Form2' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form1.h 187

Error 7 error C2065: 'next' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form1.h 187

Error 8 error C2061: syntax error : identifier 'Form2' c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form1.h 187

Error 10 error C2227: left of '->Show' must point to class/struct/union/generic type c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form1.h 188

Error 11 error C2065: 'Form1' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245

Error 12 error C2065: 'back' : undeclared identifier c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245

Error 13 error C2061: syntax error : identifier 'Form1' c:\documents and settings\tsuway\my documents\visual studio 2008\projects\filesecretsharing\filesecretsharing\ Form2.h 245











Maaf gan,,agak berantakan...letak errornya yg ane bold merah.



Padahal ane dah nambahin headernya gan di form1 sama form2 juga.




Spoiler for Form1.h:






http://pastebin.com/SDuTfeDt












Spoiler for Form2.h:






http://pastebin.com/HtkYg0J5











Gimana tuh gan jadinya?? Apa logika ane yang salah...mohon bantuannya dari agan" sekalian...



Thanks.



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 05:39 AM.


no new posts