Bonjour,
Ce sont des vieux codes fait entre 1994 et 1997.
Comme je suis plutôt débutant, j'aimerais avoir vos opinions sur l'utilité du code, ce qu'il fait, la signification de ObjSys par exemple...
Avis aux masters...
thx
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 DKKString::DKKString(PSTRZ szFromString) : DKKObject(DKKOBJECT(DKKString)) { DKKObject::Initialized(); nSize=0; pszString=NULL; // PD19990107 - PROMODES if (szFromString) { nLen=strlen(szFromString); Size(nLen+1); strcpy(pszString, szFromString); } else { nLen=0; Size(nLen+1); } bMakeWords=false; // PD20010112 bPersistent=false; // PD20011014 }
Code:
1
2
3
4
5
6
7
8 DKKObject::DKKObject(PSTRZ pszNewType, INT nSize) { objSys.EnterCritical(); nDKKObjects++; objSys.LeaveCritical(); memset((PCHAR)this, ZERO, nSize); pszObjType=pszNewType; };