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.........
.
.
.
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
"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