[Beginner] Visual c++, cannot use multi forms

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2009
Posts: 25
Reputation: gkaykck is an unknown quantity at this point 
Solved Threads: 2
gkaykck's Avatar
gkaykck gkaykck is offline Offline
Light Poster

[Beginner] Visual c++, cannot use multi forms

 
0
  #1
Aug 19th, 2009
i tried to open another form from the solution when i clicked a button, but i cannot make it work, the errors are;

Error	3	error C2061: syntax error : identifier 'ayarlar'	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	211
Error	2	error C2065: 'ayar' : undeclared identifier	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	211
Error	4	error C2065: 'ayar' : undeclared identifier	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	212
Error	7	error C2065: 'ayar' : undeclared identifier	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	213
Error	1	error C2065: 'ayarlar' : undeclared identifier	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	211
Error	5	error C2227: left of '->set' must point to class/struct/union/generic type	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	212
Error	8	error C2227: left of '->Show' must point to class/struct/union/generic type	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	213
Error	6	error C2232: '->System::Windows::Forms::Form::Owner::set' : left operand has '' type, use '.'	c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h	212

and the code is;
	private: System::Void button11_Click(System::Object^  sender, System::EventArgs^  e) {
			
			ayarlar ^ayar = gcnew ayarlar;
			ayar->Owner::set(this);
			ayar->Show();
		   }
i need some very simple advice i guess
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 66
Reputation: Protuberance will become famous soon enough Protuberance will become famous soon enough 
Solved Threads: 14
Protuberance's Avatar
Protuberance Protuberance is offline Offline
Junior Poster in Training

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #2
Aug 19th, 2009
Can you show declaration of ayarlar class?
"If a problem can be decided - it is not needed to worry, and if to decide it is impossible - worrying is useless." (с)
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 25
Reputation: gkaykck is an unknown quantity at this point 
Solved Threads: 2
gkaykck's Avatar
gkaykck gkaykck is offline Offline
Light Poster

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #3
Aug 20th, 2009
how can i do that? i think i have done it wrong. because i have just right clicked to the solution, added new windows forms application, and named it "ayarlar". i think there is something wrong or incomplete
Last edited by gkaykck; Aug 20th, 2009 at 1:12 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: lukasDelight is an unknown quantity at this point 
Solved Threads: 1
lukasDelight lukasDelight is offline Offline
Newbie Poster

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #4
Aug 20th, 2009
did you add a new windows form or a windows form application (project)?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 25
Reputation: gkaykck is an unknown quantity at this point 
Solved Threads: 2
gkaykck's Avatar
gkaykck gkaykck is offline Offline
Light Poster

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #5
Aug 20th, 2009
i added a new windows form, not another project, and it did appeared inside my project as a new header file, ayarlar.h
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 320
Reputation: cikara21 is an unknown quantity at this point 
Solved Threads: 63
cikara21's Avatar
cikara21 cikara21 is offline Offline
Posting Whiz

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #6
Aug 21st, 2009
It's very simple..Just add this..
  1. #include "Form2.h" // or whatever
.:-cikara21-:.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 25
Reputation: gkaykck is an unknown quantity at this point 
Solved Threads: 2
gkaykck's Avatar
gkaykck gkaykck is offline Offline
Light Poster

Re: [Beginner] Visual c++, cannot use multi forms

 
0
  #7
Aug 21st, 2009
thanks
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC