???????????????
????--------------------------------------------
????1?????????????COM????::CoInitialize(NULL);?????????????????????(??е???????????COM??????а?)?????????????????????????????????????
????2????????????????ж??COM?????????????????::CoUninitialize();????????????????????????У??????????????????????У???????淶??á??????и?????????????????????????????????ж??COM????????????Щ??????????????????????????????ж?????????????????????????????????????????????VB??COM?????????ж????????????????????????????У??????????????????????????Щ???????????????????????????????????????????????????ó????
????3????Import???????Щ???????????????????esriGeometry.olb???????棬????????????????δ??????????????????????esriGeometry.olb??????????:(
????4?????????????????????????????????COM???????BSTR??VARIANT?????COM?????????С???????????????????????????????????????????????????????????????Щ?鷳???????????????ATL???????????CComBSTR??CComVariant????????????????????????????????????????????????????????Console?????????????Щ????????4
????[a]??????????????Geometry??????????“Shape”????????????????????????????????BSTR???????????BSTR????????????????????????L""??When working with CComBSTR?? use the text mapping L"" to declare constant OLECHAR strings. ??
????[b]??BSTR?????????????????????BSTR???????????????????_bstr_t??????CComBSTR??????+=????????????£?????
????[c]???????console???????cout?????BSTR?????????????????????????????????????_bstr_t????BSTR?????_bstr_t???????????????????????ATL?????OLE2A???????????????????USES_CONVERSION; ???????????????????