accessing contents of header file used

Write your question here.
I am trying to include a header file(that i myself have defined) named "Mines.h" in a windows form application(GUI) named "Minesweaper", in that header file i have three classes: location, appear and game... i want to use member fuenctions of class game in my windows form, but i dont know how to do that, how and where to make object of that class in form? I will be greatfull for your help..... Its quite urgent, if u can then kindly help me as soon as possible.........
.
.
.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "Mines.h"		
namespace mmmm {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for Minesweaper
	/// </summary>
	public ref class Minesweaper : public System::Windows::Forms::Form
	{
	public:
		Minesweaper(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//

		}
thanks keskiverto for this article, but i know all this earlier, the problem that i am facing is that in header file i have three classes: location, appear and game... i want to use member functions of class game in my windows form... i am getting errors when i try to make objects of these classes
Umeed wrote:
thanks, but i know all this already
... but i dont know how to do that ...

Mutually exclusive claims.

i am getting errors

http://www.cplusplus.com/forum/lounge/102293/#msg551333
Can't you just make the game object a member of Minesweaper?
"Can't you just make the game object a member of Minesweaper?"

exactly it is the thing what i was trying to do, but couldnt...............
now a friend explained me that............ thank u all for your help..... my issue has been solved.............


I was supposed to write


Game *g; // in private data of Minesweaper
g=new Game(); // in constructor of Minesweaper
Topic archived. No new replies allowed.