View Single Post
Old 06-12-2005, 05:36 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
You need to split it up, into seperate headerfiles where only the required predefinition is mentioned, the actual pressence dependant parts will know how to use it, once you've included both deffinitions.
Code:
// form1.h
#ifndef __FORM1__H__
#define __FORM1__H__
Form1_button1_Click(...);
#endif
Code:
// form2.h
#ifndef __FORM2__H__
#define __FORM2__H__
Form2_button1_Click(...);
#endif
Code:
// form1.cpp
#include "form1.h"
#include "form2.h"
Form1_button1_Click(...)
{
(new Form2())->Show();
}
Code:
// form2.cpp
#include "form2.h"
#include "form1.h"
Form2_button1_Click(...)
{
(new Form1())->Show();
}
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote