Patch level : 12.0 502

Files correlati     : sy
Commento            : Sistemate funzioni a VS2017

git-svn-id: svn://10.65.10.50/branches/R_10_00@24281 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-01-18 15:25:31 +00:00
parent a80d89bec4
commit de48d6cd3e
2 changed files with 15 additions and 4 deletions

View File

@ -558,9 +558,20 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni"))
add_prop(TR("Libreria Matematica"), "GreenLeaf Library");
#ifdef _MSC_VER
const int cver = _MSC_VER / 100 - 6;
const int csub = _MSC_VER % 100;
add_prop(TR("Libreria C++"), format("Microsoft Visual Studio %d.%d", cver, csub));
int cver = 0, csub = 0;
if (_MSC_VER < 1900)
{
cver = _MSC_VER / 100 - 6;
csub = _MSC_VER % 100;
}
else
{
// 1900 -> 14, 1910 -> 15
cver = _MSC_VER;
cver = _MSC_VER / 100 - 5 + _MSC_VER % 100 / 10;
csub = _MSC_VER % 100 % 10; // Is that a thing?
}
add_prop(TR("Libreria C++"), format("Microsoft Visual Studio %d.%d", cver, csub));
#endif
set_read_only();

View File

@ -226,7 +226,7 @@ void CPutFile(logicname,filed,dirflg)
int dirflg; /* flag per file comuni */
{
CWrite(&fdir[dirflg],(RecType)filed,(long) logicname, UnLock);
CWrite(&fdir[dirflg], (RecType)filed, (long)logicname, NoLock /* non viene mai bloccato UnLock*/);
}
/*