943,867 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 949
  • C++ RSS
Aug 19th, 2009
0

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

Expand Post »
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
Similar Threads
Reputation Points: 17
Solved Threads: 2
Light Poster
gkaykck is offline Offline
40 posts
since Aug 2009
Aug 19th, 2009
0

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

Can you show declaration of ayarlar class?
Reputation Points: 78
Solved Threads: 17
Junior Poster in Training
Protuberance is offline Offline
88 posts
since Aug 2009
Aug 20th, 2009
0

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

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.
Reputation Points: 17
Solved Threads: 2
Light Poster
gkaykck is offline Offline
40 posts
since Aug 2009
Aug 20th, 2009
0

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

did you add a new windows form or a windows form application (project)?
Reputation Points: 10
Solved Threads: 1
Newbie Poster
lukasDelight is offline Offline
1 posts
since Jul 2009
Aug 20th, 2009
0

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

i added a new windows form, not another project, and it did appeared inside my project as a new header file, ayarlar.h
Reputation Points: 17
Solved Threads: 2
Light Poster
gkaykck is offline Offline
40 posts
since Aug 2009
Aug 21st, 2009
0

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

It's very simple..Just add this..
c++ Syntax (Toggle Plain Text)
  1. #include "Form2.h" // or whatever
Reputation Points: 47
Solved Threads: 69
Posting Whiz
cikara21 is offline Offline
340 posts
since Jul 2008
Aug 21st, 2009
0

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

thanks
Reputation Points: 17
Solved Threads: 2
Light Poster
gkaykck is offline Offline
40 posts
since Aug 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: std::vector and for loop questions
Next Thread in C++ Forum Timeline: Using C++ abstract class setters?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC