| | |
#include "form.h" problem
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 517
Reputation:
Solved Threads: 1
I am encounter a problem that I dont understand what is happening.
I use the Form application where I from Form4 will open Form22 like this wich works.
What I need to do now is to #include "Form4.h" in Form22 like this:
I also tried this in Form22:
But if I try to #include "Form4.h" in Form22, I will have a compileError that says this. So I dont know why this is happening and what I can do about it.
'Form22' : undeclared identifier
'form22' : undeclared identifier
I use the Form application where I from Form4 will open Form22 like this wich works.
C++ Syntax (Toggle Plain Text)
#pragma once #include "stdafx.h" #include "Form22.h" Form22 ^form22 = gcnew Form22; form22->ShowDialog();
What I need to do now is to #include "Form4.h" in Form22 like this:
C++ Syntax (Toggle Plain Text)
#pragma once #include "stdafx.h" #include "Form4.h"
I also tried this in Form22:
C++ Syntax (Toggle Plain Text)
#pragma once #include "stdafx.h" #ifndef FORM4_H #define FORM4_H #include "Form4.h" #endif
But if I try to #include "Form4.h" in Form22, I will have a compileError that says this. So I dont know why this is happening and what I can do about it.
'Form22' : undeclared identifier
'form22' : undeclared identifier
Last edited by Jennifer84; Nov 5th, 2008 at 6:40 pm.
•
•
Join Date: Feb 2008
Posts: 517
Reputation:
Solved Threads: 1
My actual case is that I need to know how it is possible to pass a "string" from Form22 to Form4.
The test I could think of could be:
Lets say that Form22 has a textBox1 that has the string "Hello".
Then when pressing the button "OK" that will close the Form22,
then Form4 will show a MessageBox with "Hello".
Within a Form I know how to do this but many get stuck when doing
this through forms.
So I wonder how I will begin this ?
Thank you
The test I could think of could be:
Lets say that Form22 has a textBox1 that has the string "Hello".
Then when pressing the button "OK" that will close the Form22,
then Form4 will show a MessageBox with "Hello".
Within a Form I know how to do this but many get stuck when doing
this through forms.
So I wonder how I will begin this ?
Thank you
![]() |
Similar Threads
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- $rs=mysql_query($sql) or die("error in common.inc.php at line 257"); (PHP)
- This ought to be simple - extra spaces (PHP)
- I need special stuff in my project like system("cls") (C++)
Other Threads in the C++ Forum
- Previous Thread: What's wrong with the return of this function call?
- Next Thread: please help with code emmidiately
Views: 500 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays assignment beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream input int integer java lazy lib linux loop looping loops map math matrix memory multidimensional newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





