I'm using FireMonkey and want the user to select a directory using the interface supplied by a TFileOpenDialog (I find the SelectDirectory interface outdated at best - yes, even with the sdNewUI option).
Firstly, Is it bad practice to include the VCL.Dialogs unit (to use a TFileOpenDialog) in a FireMonkey application?
Secondly, this is still only possible with Windows Vista and above. Is this the correct way to check for a compatible Windows versions?
{IFDEF WIN32 or WIN64}
if Win32MajorVersion >= 6 then
// Create TOpenFileDialog with fdoPickFolders option