Original Post
OK, let me start off by apologising if this is a simple question, I am self taught, and am sure I have a load of bad habits and do not know some simple stuff.
Question 1
-----------
I have an SDI application (using MS Vis Studio 6). The view class has a global object in it, and it calls the constructor for the object in the correct manner.
I actually now want to only create this object when someone enters in parameters into a dialogue box which is called off a menu.
The View catches and displays the dialog box, and also recieves the correct parameters to create the object. (Actually just 2 integers)
When I then call myobject Test(a,b); I would expect the object test to be created using the a & b parameters.
When I try to compile this, I get a load of errors complaining about not being able to find object test. This is probably simple, so don''t flame me, but do I need the function that creates Test to be above the rest of the code (if you ask why didn''t I try this, it is because I just thought of that question), so it knows that there will be an object called test ?
Question 2
-----------
Same application, in a different function.
I have some code as follows...
Test.Generate();
Invalidate();
When I run this in debug, with a break on the Test.Generate() line, the code runs fine. I can Continue after the break and the routine draws the correct output on the screen.
If I am in run however, then there is no output on screen. Anyone got any ideas or suggestions ?
Thanks for your help & Patience,
Bp.