以下の内容はhttps://blog.systemjp.net/entry/2022/03/16/095910より取得しました。


MFCで バージョン表記の文字列などから数値部分だけ抽出

CString csTempVer = "1.2.33";

CString csNum = "";
int pos;
while (!csTempVer.IsEmpty())
{
	pos = csTempVer.SpanExcluding("0123456789").GetLength();
	csTempVer = csTempVer.Mid(pos);
	pos = csTempVer.SpanIncluding("0123456789").GetLength();
	csNum += csTempVer.Left(pos);
	csTempVer = csTempVer.Mid(pos);
}

ネタ元

okwave.jp




以上の内容はhttps://blog.systemjp.net/entry/2022/03/16/095910より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14