How to write Managed C++ proxy class correctly

994
3
09-21-2017 06:29 AM
NattawutWiginiyatanee1
New Contributor II

I've look at this document 

https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#26b7a578-7854-4ff9-b96c-948eded7362... 

About performance .Net and Managed C++

What I want to do is writing Managed C++ proxy class to improve the performance of my desktop app which use ArcObject.

I've successfully created a test project (visual c++, CRL class project) and reference ESRI dll.

And able to use ArcOcject interfaces and classes. But what I noticed is that I can't use IPointPtr which presents in the example in the document above.

I can use IFeatureWorksapce but not IFeatureWorkspacePtr

So I think what I'm doing now is incorrect.

Could you please guide me what to do to able to use IFeatureWorkspacePtr

Thanks in advance.

0 Kudos
3 Replies
NattawutWiginiyatanee1
New Contributor II

I'm still waiting for someone who can answer this question... 

0 Kudos
GKmieliauskas
Esri Regular Contributor

Hi Nattawut,

Can you use IUnknownPtr in your application? If no, check is comdef.h is included in your project

0 Kudos
NattawutWiginiyatanee1
New Contributor II

No I can't. Could you guide me step be step to include comdef.h in project? 

Where is comdef.h file locate?

0 Kudos