LoginSignup
0
0

More than 3 years have passed since last update.

C++ Builder 10.2 Tokyo > オンラインドキュメントから消されたSelectDirectory()構文 > 実行は可能

Last updated at Posted at 2019-07-30
動作環境
RAD Studio 10.2 Tokyo Update 3 
Windows 10 v1903 

参考

上記において以下のような実装をしている。

if (SelectDirectory(L"フォルダを指定して下さい。", L"", dir))
...

オンラインドキュメント(10.2 Tokyo)にはない

上記のSelectDirectory()構文は10.2 Tokyoのドキュメントには記載がない。
http://docwiki.embarcadero.com/Libraries/Tokyo/ja/Vcl.FileCtrl.SelectDirectory

extern DELPHI_PACKAGE bool __fastcall SelectDirectory(System::UnicodeString &Directory, TSelectDirOpts Options, int HelpCtx)/* overload */;

2007のドキュメントにはある。
FileCtrl.SelectDirectory 関数

Boolean SelectDirectory(AnsiString Directory, TSelectDirOpts Options, Longint HelpCtx);
Boolean SelectDirectory(const AnsiString Caption, const BSTR Root, AnsiString Directory, TSelectDirExtOpts Options = [sdNewUI], TWinControl * Parent = nil);

理由は不明であるが、2つあった構文のうち、2つ目の構文が10.2 Tokyo(や10.3 Rio)のドキュメントで消されているようだ。

10.2 Tokyoで実行はできる。

非推奨の関数なのだろうか。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0