Hello,
=20
I try to get a mapxtreme application work on
Windows2000, not succesfull so far.
I have 2 questions:
=20
1-) I am not using MapXBroker. Instead I manage my own
pool of mapx objects in
VC++ project. I create my pool of mapx objects as
follows:
=20
   CCMapXCourier mapxCourier;
   if(
!mapxCourier.CreateDispatch("MapInfo.MapXCourier") )=20
throw "fail1";
   for( int x=3D0; x<3; x++ )   {
      m_mapPool[x] =3D new CCMapX;
      m_mapPool[x]->m_lpDispatch =3D
mapxCourier.GetMapXFromNewServer(m_strGeosetFile);=20
      if( mapxCourier.GetErrorNum() !=3D 0 )  throw
"fail2";
   }
  ........
=20
On the first map operation, I get the exception that
"The RPC server is unavailable".
I  checked from the services, it is STARTED. I checked
the event viewer, I did not see any RPC related
message.

Did you encounter such an error with MapXtreme and
C++?
Do you have any solution and/or advise to give me?
=20
2-) In the MapXtreme help, it says to create mapx
objects as follows:
Dim objMapXCourier as Object
Dim objMapX as Object
Set objMapXCourier =3D
CreateObject("MapInfo.MapXCourier")
Set objMapX =3D
objMapCourier.GetMapXFromNewServer(gstfile)
=20
This works for an VBasic application as I tried it.
However, its VC++ equivalent in VC++ dialog project
type do not work!
_MapXcourier mapxcourier;
if( !mapxcourier.CreateDispatch("MapInfo.MapXCourier")
) {
  AfxMessageBox("failure to create mapxcourier");
  return;
 }
...
=20
I always get the failure message. But why the same
CreateDispatch("MapInfo.MapXCourier")
do not fail (as in question 1) in VC++ ATL COM project
type?
=20
Thanks in advance,
=20
Regards,
-Mehmet Bayraktar



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to