nazereh

How to launch ArcMap programatically through VC++

Discussion created by nazereh on Jun 29, 2011
Latest reply on Jun 30, 2011 by agrineersumit
Dear Friends,
I am quite new in VC++. I am trying to launch ArcMap from VC++, I was pretty easy for me in VB but my VC++ codes dont act appropriately !!!
the error massage which I get is:
Cannot open include file: 'olb/esrisystem.h': No such file or directory
but in the folder of my "ArcSDK.h" and "esricomplete.h", there is an olb directory and there inside is my esrisystem.h


any idea ???? there are my codes !:

#include "C:\Programme\ArcGIS\DeveloperKit10.0\include\CPPAPI\ArcSDK.h"
...
   // Launch ArcMap
   IApplication m_pApp;
   IMxDocument m_mxDoc = new IMxDocumentPtr("esriArcMapUI.MxDocument");
   IDocument m_pDoc = new IDocumentPtr(m_mxDoc);
   (*m_pDoc)->get_Parent(&m_pApp);
   m_pApp.Visible = True;


thanks
nazereh

Outcomes