Simplify feature geometry for a shapefile
SimplifyShapefile.h
// Copyright 2011 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

  
#ifndef __SIMPLIFYSHAPEFILE_SAMPLE_H__
#define __SIMPLIFYSHAPEFILE_SAMPLE_H__

#include <iostream>
#include "LicenseUtilities.h"
#include "PathUtilities.h"
using std::cerr;
using std::wcerr;
using std::endl;

// ESRI Engine C++ API
#include <ArcSDK.h>

HRESULT Simplify(BSTR dataPath, BSTR dataName, BSTR outPath, BSTR outName);
HRESULT CreateOutShapefile(IFeatureClass* pDataFC, 
                           BSTR outPath, BSTR outName,
                           IFeatureClass** pOutFC);
HRESULT CreateNewGeom(IFeatureClass* pOutFC, IGeometry* pNewGeom);
HRESULT InsertFeature(IFeatureCursor* pInFeatCur, 
                      IFeatureBuffer* pInFeatBuf,
                      IFeature* pOrigFeat, IGeometry* pGeom);

#endif   // __SIMPLIFYSHAPEFILE_SAMPLE_H__