Hi am new to Visual C++, Could Someone please explain what ConfParams() declared in a structure does
__declspec(align(BYTE)) struct ConfParams
{
BOOL m_timeout;
DOUBLE m_caution;
ConfParams();
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a constructor declaration.
In C++ other than default accessibility level
structandclassare equivalent.structby default haspublicmembers,classby default hasprivatemembers.I’m not clear why your subject references
__declspecbut if that’s what you want to know about see here.Member functions have no alignment only the data is affected.