S
Samant.Trupti
Hi all,
I have some code that I am unable to understand. Can you please
help?
int _tmain(int argc, _TCHAR* argv[])
{
// Initialize COM environment.
ccLib::CCoInitialize CoInitialize(ccLib::CCoInitialize::eMTAModel);
....
}
1. CCoInitialize is a class
to invoke a object of class you write
CCoInitialize cc;
2. CoInitialize is static function.
to invoke static function you write scope resolution "::"
ccLib::CCoInitialize::CoInitialize(ccLib::CCoInitialize::eMTAModel);
when they have "space" instead of "::" what is that mean? What are
they trying to do?
Thanks
Trups
I have some code that I am unable to understand. Can you please
help?
int _tmain(int argc, _TCHAR* argv[])
{
// Initialize COM environment.
ccLib::CCoInitialize CoInitialize(ccLib::CCoInitialize::eMTAModel);
....
}
1. CCoInitialize is a class
to invoke a object of class you write
CCoInitialize cc;
2. CoInitialize is static function.
to invoke static function you write scope resolution "::"
ccLib::CCoInitialize::CoInitialize(ccLib::CCoInitialize::eMTAModel);
when they have "space" instead of "::" what is that mean? What are
they trying to do?
Thanks
Trups