Converting a tin to a point shapefile
TinToPoint.h
// Copyright 2012 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 __TIN2POINT_SAMPLE_H__
#define __TIN2POINT_SAMPLE_H__

#include <iostream>
#include "LicenseUtilities.h"
#include "PathUtilities.h"
#include <math.h>


HRESULT ConvertTin2Point(char* tinFullPath, BSTR shapePath, BSTR shapeFile);
HRESULT CreateBasicFields(esriGeometryType shapeType, 
                          VARIANT_BOOL hasM, 
                          VARIANT_BOOL hasZ, 
                          ISpatialReference* pSpatialRef, 
                          IFields** ppFields);

#endif   // __TIN2POINT_SAMPLE_H__