GeoCountry -> enum to CString conversion VC++ 7
Sample :
Hi, could you help me on Howto convert the above MyGeoCountryCode:<..snip> BSTR m_bstrRegion; locHotSprings->StreetAddress->get_Region(&m_bstrRegion); CString csRegion=Bstr2Cstr(m_bstrRegion); BSTR m_bstrCountry; //GeoCountry MapPoint::GeoCountry MyGeoCountry; CString csCountry; locHotSprings->StreetAddress->get_Country(&MyGeoCountry ); str.Format(_T("%.3f km: %s, %s, %s %s %s %s"),adist, csStreet,csCity,csOtherCity,csRegion,csCountry,csPostal); </snip>
into String as Value or another way to get the actual
CountryCode by name out of the "simple" enum.. as CString.
(My first week in Visual C++ )
Thx in Advance
elec29a