Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
constructors not allowed a return type
Now I have one for you:
I have this code:
void Initialize(LPTSTR as_Name, DWORD adw_Type);
CVariable(LPTSTR as_Name, DWORD adw_Type);
CVariable::CVariable(LPTSTR as_Name, DWORD adw_Type)
void CVariable::Initialize(LPTSTR as_Name, DWORD adw_Type)
Compilation under VC++ 6.0 gives me:
'error C2533: 'CVariable::CVariable' : constructors not allowed a return type'
Does any of you see a return type declared??? I don't!!! What's the problem here?
0 · ·