On 13 Mar 2005 21:14:13 -0800,
prashant_mandhare04@yahoo.com (Mandhare
Prashant) wrote in comp.lang.c++:
[color=blue]
> Hello,
>
> I have Mapoint software installed on my machine.
> Now, in VC++, I can use this mapoint application in my program as
> below-
>
>
> _Application mapapp;
> _Map map;
>
> if( mapapp.CreateDispatch ("MapPoint.Application")){
> mapapp.SetVisible (FALSE);
> map=mapapp.GetActiveMap ();
> map.SetMapStyle (0) ;
> mappointInstalled=true;
> }else{
> mappointInstalled=false;
> }
>
> But, the problem is that when I run multiple instances of my program,
> it starts those many instances of mapoint. That is very resource
> consuming.
>
> Is it possible to check if an instance of mappoint is already running
> & if so, use this running mappoint in next instance of my program?
> Please suggest some solution.
>
> Thanks in advance.[/color]
C++ does not have ActiveX, or multiple instances either. These are
Microsoft specific extensions for Windows. Ask in
news:comp.os.ms-windows.programmer.win32 where the experts on such
things are.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html