title: Different ways of constructing an object in C++
body: <p>I want to construct an object in the stack, using C++.
  Do you know what is the difference between these to ways of calling the constructor (with and without parenthesis):</p>
  
  <p>a) 
  <code>MyClass object ;</code></p>
  
  <p>b) 
  <code>MyClass object() ;</code></p>
  
  <p>I am using MFC and when constructing the global variable for the main app, if I use the latter way, I get an exception, I thought these two ways were equivalent.</p>
  
  <p>Thank you guys for any information.</p>