deathscythe
January 11th, 2007, 07:41 AM
Hi,
I have created a managed C++ application in VS2003, and have created saveral froms, assume I have created 5 forms all named form1 to form5, what I want to do is when form1 is loaded as the application starts, the other 4 forms should be loaded into memeory as well but remain hidden. The user would then should be able to click the next button on form1, where it will be hidden and form2 shown. However I am having difficulty in calling the form3 object which was created in form1 from form2, when i try to include the header file for form3 into form2 i get compilation errors.
Is there any solution to this? and is this the best method for achieving what I want to achieve?
Usually in Java I would really create many form but just one master form and have panels for the other screens which I would load when the next button has been clicked, I couldnt find a way to use VS2003 GUI builder and achieve this, if it is possible any hints on this would be appreciated as well.
To those who will say use Java, or use VB.Net or C# the project I am working on will also require access to some code that has been written in C++ and needs to be unmanaged. Hence the choice of managed C++.
If moe details are required I would supply them so just ask.
Thank you.
I have created a managed C++ application in VS2003, and have created saveral froms, assume I have created 5 forms all named form1 to form5, what I want to do is when form1 is loaded as the application starts, the other 4 forms should be loaded into memeory as well but remain hidden. The user would then should be able to click the next button on form1, where it will be hidden and form2 shown. However I am having difficulty in calling the form3 object which was created in form1 from form2, when i try to include the header file for form3 into form2 i get compilation errors.
Is there any solution to this? and is this the best method for achieving what I want to achieve?
Usually in Java I would really create many form but just one master form and have panels for the other screens which I would load when the next button has been clicked, I couldnt find a way to use VS2003 GUI builder and achieve this, if it is possible any hints on this would be appreciated as well.
To those who will say use Java, or use VB.Net or C# the project I am working on will also require access to some code that has been written in C++ and needs to be unmanaged. Hence the choice of managed C++.
If moe details are required I would supply them so just ask.
Thank you.