Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on tip: creating object model of mappoint and SQL command within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I just had following problem., is solved and wants to share it. In Delphi I needed to update an ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| tip: creating object model of mappoint and SQL command I just had following problem., is solved and wants to share it. In Delphi I needed to update an MDB database using SQL ADO components and right after it create a mappoint instance to check in what street vehicle is. It does not work So after the SQL things: Code: PostMessage(Handle, WM_LOADMP, 0, 0); Code: constructor TMapPoint.Create(ErrorProc: TOnError);
var
Reg: TRegistry;
FileName: string;
begin
inherited Create;
FOnError := ErrorProc;
try
FMP := TApplication.Create(nil);
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CLASSES_ROOT;
if not Reg.OpenKey('.ptm\MapPoint.Map.EU.11\ShellNew', False) then
if not Reg.OpenKey('.ptm\MapPoint.Map.EU.9\ShellNew', False) then
Exit;
FileName := Reg.ReadString('FileName');
FMP.OpenMap(FileName, False);
finally
Reg.Free;
end;
except
on E: Exception do begin
if Assigned(FOnError) then
FOnError(Self, E);
end;
end;
end;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| command, creating, mappoint, model, object, sql, tip |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What it is the command to export data in excel format ? | Elbarto | MapPoint 2006/2009 Discussion | 1 | 03-15-2006 04:38 AM |
| Drawing on mappoint object | vidyakulkarni | MapPoint 2006/2009 Discussion | 4 | 08-05-2004 09:28 AM |
| route object to drawing object | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-09-2003 10:29 PM |
| I am looking for GIS software that can model off.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-04-2002 08:29 AM |
| What is the "Programming Model" of Mappoint, and h.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-27-2001 11:56 AM |
Zante Holidays
Enjoy lovely sandy beaches when you take your Zante holidays booked through UlookUbook!