Hello,
May somebody help me?
I'm making a program in Delphi6 and MapPoint2004 and
I used exactly the example in the code found at
http://www.mp2kmag.com/a80--delphi.a....mappoint.html.
function TFMain.Controll_Address(address:string):string;
02 var
03 ret:string;
04 r:FindResults;
05 o:OleVariant;
06 item:location;
07 line, street,city1,city2,region,postalcode:string;
08 country:Olevariant;
09 begin
10 line:=address;
11
......
....
r:=Mapp.ActiveMap.FindAddressResults(street,city1, city2, region, postalcode, country);
20
21
22
23 if r.Count>0 then
24 begin
25 o:=1;
26 item:=r.get_item(o) as location;
27 ret:=
28 item.Get_StreetAddress.Get_Street+','+ ......
WHEN I call the function Get_streetAddress.Get_street or get_city
I have a "Access violation at address 0045FE5C. Read of address 000000.
Thanks