THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2010 at 10:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
I can't check since all of my versions are registered. Yeah, I could uninstall and reinstall, making sure that the Registry for C4D is clear and so on. Since Maxon doesn't give developers a switch so we can test this information, I'm putting a user through some paces.
Here is what I have. Is it correct? Thanks for the examples and explanations no one included anywhere...
#ifdef C4D_R12
VERSIONTYPE vtype = GeGetVersionType();
SYSTEMINFO stype = GeGetSystemInfo();
if ((vtype == VERSIONTYPE_NET_SERVER_3) || (vtype == VERSIONTYPE_NET_SERVER_UNLIMITED) || (vtype == VERSIONTYPE_NET_CLIENT)) network = TRUE;
if (stype & SYSTEMINFO_DEMO) GePrint("C4D Demo");
else if (stype & (SYSTEMINFO_SAVABLEDEMO|SYSTEMINFO_SAVABLEDEMO_ACTIVE)) GePrint("C4D Savable Demo");
else if (stype & SYSTEMINFO_COMMANDLINE) GePrint("C4D CommandLine");
else if ((vtype == VERSIONTYPE_NET_SERVER_3) || (vtype == VERSIONTYPE_NET_SERVER_UNLIMITED)) GePrint("C4D Server");
else if (vtype == VERSIONTYPE_NET_CLIENT) GePrint("C4D Client");
else
{
// serial number check
if (!(ippSerial && ippSerial->registered)) return FALSE;
}