| | |
#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
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





