● 構造体

SCVER 構造体

#define MAX_VERSTR              (128 + 4)

typedef struct {
    int             top,mid,bottom;
    int             bNormal;
    int             reserved;
    char            ver[MAX_VERSTR];
} SCVER,*PSCVER;

StrCalc のバージョン情報を格納する構造体です。

メンバ内容
top
mid
bottom
バージョン番号の各数値が格納されます。バージョン番号は左から順に topmidbottom となります。
例えば、バージョン番号を a . b . c とした場合、topamidbbottomc となります。また、a . b の場合は、topamidbbottom = 0 となります。
bNormallib\normal フォルダに入っていた DLL の場合は 1 、lib\oldWin フォルダに入っていた DLL の場合は 0 が格納されます。
64 bit 版の場合は 1 が格納されます。
reserved(予約)
ver128 文字以下のバージョン情報文字列(末尾ヌル)が格納されます。


ver は通常のバージョン情報以外に、topmidbottom では表現できない情報が付加される事があります。多くの場合、"3.9a" や "3.9 monster edition" のような文字/文字列です。
例えば、64 bit 版の 3.9.1234 の場合は、top = 3 、mid = 9 、bottom = 1234 となり、ver には "3.9.1234 x64" が格納されます。