Integrating C++ code With ArcGIS Button

2767
3
Jump to solution
08-28-2015 11:45 AM
MasroorHussain
New Contributor II

Hi,

I have a c++ code that works with GDAL and do some raster processing. I want to create a button in ArcGIS Desktopm pass the raster layer loaded in ArcGIS and then access raster (pixel) values in the c++ code.

Is there an example for such a project ?.

Sincerely,

Masroor

0 Kudos
1 Solution

Accepted Solutions
AlexanderNohe1
Occasional Contributor III

For creating the button, you should look at the following documentation:
developer-support/arcobjects-c++/create-command-atl at master · Esri/developer-support · GitHub

As for the other parts, I am unable to find many examples just yet.

View solution in original post

3 Replies
AlexanderNohe1
Occasional Contributor III

For creating the button, you should look at the following documentation:
developer-support/arcobjects-c++/create-command-atl at master · Esri/developer-support · GitHub

As for the other parts, I am unable to find many examples just yet.

MasroorHussain
New Contributor II

Hi Alexander,

I am successful in following the example and creating a button that works in ArcGIS 10.3.

Can you please guide me how to link it to ArcGIS 10.3 for debugging - i.e. launch from Visual Studio 2013 and ArcGIS launches and I could debug.

Sincerely,

Masroor

AlexanderNohe1
Occasional Contributor III

After you launch ArcMap, add break points to your code and then attach to process in Visual Studio to ArcMap.

When you press the button, you should be able to step through your code.