<p>Hi if I am creating something on the stack using new I declare it like:</p>

<pre><code>object *myObject = new object(contr, params);
</code></pre>

<p>Is there a way to declare this such as:</p>

<pre><code>object *myObject;
myObject = new object(constr, params);
</code></pre>

<p>Is this correct?</p>

Yes, that is correct.  But new does not create things on the stack, it creates them on the heap.
To create object on the stack you would do:
```
```
object myObject(constr, params);
```
```
There is no other way to create an object on the stack and once it is created on the stack you can't "recreate" it with the same name later in the same function.