/////////////////////////////////////////////////////////////////////////////// // Basic 'C' callable function interface int EXP_LVL1 CS_dtSelector (char *dtKeyName) { CdtSelect dtSelect; dtSelect.SetInitialDatum (dtKeyName); INT_PTR st = dtSelect.DoModal (); if (st == IDOK) { CS_stncp (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF); } return (int)st; }
/////////////////////////////////////////////////////////////////////////////// // Basic 'C' callable function interface int EXP_LVL1 CS_dtSelector (char *dtKeyName) { TCHAR tcKeyName [cs_KEYNM_DEF]; CdtSelect dtSelect; CSt_strNCpy (tcKeyName,dtKeyName,cs_KEYNM_DEF); dtSelect.SetInitialDatum (tcKeyName); INT_PTR st = dtSelect.DoModal (); if (st == IDOK) { CSt_strNCpy (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF); } return static_cast<int>(st); }
int EXP_LVL1 CS_dtSelectorA (char *dtKeyName,char *description,char *source,char *ellipsoid,char *technique) { CdtSelect dtSelect; dtSelect.SetInitialDatum (dtKeyName); INT_PTR st = dtSelect.DoModal (); if (st == IDOK) { CS_stncp (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF); CS_stncp (description,dtSelect.GetSelectedDescription (),64); CS_stncp (source,dtSelect.GetSelectedSource (),64); CS_stncp (ellipsoid,dtSelect.GetSelectedEllipsoid (),cs_KEYNM_DEF); CS_stncp (technique,dtSelect.GetSelectedTechnique (),32); } return (int)st; }