I am trying to create objects of a class that have a global scope. However when I try to assign the instances of the class to the variables (the pf array), I am receiving an error "'=' - object required". What am I doing wrong?
- A little confused
- Sleep code
- Is it possible to generate an ERR_INVALID_PARAMETER error on class instantiation?
tymoore510:
I am trying to create objects of a class that have a global scope. However when I try to assign the instances of the class to the variables (the pf array), I am receiving an error "'=' - object required". What am I doing wrong?
I am trying to create objects of a class that have a global scope. However when I try to assign the instances of the class to the variables (the pf array), I am receiving an error "'=' - object required". What am I doing wrong?
The new operator returns a descriptor (a "dynamic pointer" in their terminology), so the declaration must be SampleClass* pf[3];
In that case you do not need the default constructor either.
Ovo:
That did the trick. Thank you very much for your assistance!
The new operator returns a descriptor (a "dynamic pointer" in their terminology), so the declaration must be SampleClass* pf[3];
In that case you do not need the default constructor either.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register