| | |
#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 |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





