View Single Post

  #1 (permalink)  
Old 04-22-2008
black_fox_71 black_fox_71 is offline
Junior Member
White Belt
 
Join Date: Apr 2008
Posts: 11
Arrow problems to load a card with visual c# 2005

hello
i develop an aplication with visual c# 2005 using an API of mappoint 2006. When i load a card (of europe for my case ), i have the following problems :

System.runtime.interropservice.Comeexception s'est produite dans axinterrop.mappoint 2005
Information supplémentaires : le fichier que vous avez choisi n'est un pas un fichier mappoint 2005

in english : the file is not a mappoint 2005 map ????? strange

So i use the following code to load the map :

string objtemplate = "D:/bidule.ptt"; // just example
mappoint.map objMap = null;
axMappointcontrol1.NewMap(objtemplate);
objMap = axMappointControl1.ActiveMap;
objMap.MapStyle= MapPoint.GeoMapStyle.geoMapStyleData;


i used the good references of mappoint, i use the good map too (europe map, it's on the good path). Moreover i tested my code on an other computer, and it works .

I want to know, like i use an old version of excel if the probleme can becom of that ??

If someone can help me .

ps : sorry for my english, im french and english course are not the better in the world in france.



Reply With Quote