C ++ BuilderはどのようにしてさまざまなBPLおよびDLLサポートから脱却し、IncMonth(月の追加)アプリケーションと独立して実行し、月の最終日を取得しますか

option去掉:
1>パッケージ->ランタイムパッケージでビルド
2>リンカー->動的RTCを使用
3> CodeGuard-> CodeGuard検証

再コンパイル後はOKです

if(CjzZQ-> Value> 0)
CjzYME-> Value = DateToStr(IncMonth(StrToDate(CjzYMB-> Value + "-01")、CjzZQ-> Value-1))。SubString(1,7);

TdateTime MonthLastDay(year、month、1); //年、月都是整数
MonthLastDay = IncMonth(MonthLastDay、1);
MonthLastDay–;

おすすめ

転載: blog.csdn.net/weixin_42041819/article/details/104073448