Wrox Programmer Forums
|
BOOK: Beginning ArcGIS for Desktop Development using .NET
This is the forum to discuss the Wrox book Beginning ArcGIS for Desktop Development using .NET by Pouria Amirian; ISBN: 978-1-118-44254-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ArcGIS for Desktop Development using .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2013, 08:36 AM
Registered User
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataStatisticsClass()

Great Book,

I'm encountering the following error on pg. 249

IDataStatics dataStatistics = new DataStatisticsClass();
__________________________________________________ __________
ERROR MESSAGE:

DataStatisticsClass.DataStatisticsClass()
Esri Data Statistics object. Constructor has no input arguments.

Error:
Interop type 'ESRI.ArcGIS.Geodatabase.DataStatisticsClass' cannot be embedded. Use the applicable interface instead.
__________________________________________________ ____________

when I changed to above to:

IDataStatistics dataStatistics = new DataStatistics();

no errors and program runs.

Any suggestions?

Thanks,
Robert









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.