To Hurst -
There is some working code in \TestStand\Examples\Java\JavaPathSetup.c(111) 
or 
here is another example of code:
	VARIANT_BOOL gotPath;
	std::vector<_bstr_t> pathArr;
	TSUTIL::SafeArray
 selectedPathsArray;
	TSUTIL::SafeArray absolutePathsArray;
	CComBSTR intialPath = m_TPS;
	LPCTSTR szFilter = _T("PAWS Files (*.PAW)|*.PAW|All Files (*.*)|*.*||");
	gotPath = m_Engine->DisplayFileDialog(_T(""), _T(""), (LPCTSTR)m_TPS, 
		&selectedPathsArray, &absolutePathsArray, OpenFile_UseRelativePath, "PAW", 
		OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, vtMissing, NULL, NULL); 
	if (gotPath)
	{
		selectedPathsArray.GetVector(pathArr);
		m_TPS = (LPCTSTR)pathArr[0];
		absolutePathsArray.GetVector(p
athArr);
		m_absoluteTPS = (LPCTSTR)pathArr[0];
	}
Scott Richardson (NI) 
					
				
			
			
				
	Scott Richardson
https://testeract.com