Community of VE/MapPoint Users and Developers
This is a discussion on Registering MapPoint 2006 through code within the Development forums, part of the MapPoint 2006/2009 Discussion category; My application has an embedded MapPoint 2006 control and works as expected when the current user is the same user ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Registering MapPoint 2006 through code I'd like to register MapPoint for the current user through code when the application is run so that the user won't have to take the step of doing it manually. Anyone know if and how this can be done in MFC? |
| |||
| Re: Registering MapPoint 2006 through code
Hi, An easy workaround is to run mappoint.exe from within your code at first start or during setup.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Registering MapPoint 2006 through code
Here's the solution I found, in case someone else comes along with the same problem: Code: STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
if( !CreateProcess( NULL,
"\"C:\\Program Files\\Microsoft Mappoint\\MapPoint.exe\" -regserver",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi )
)
{
return;
}
// Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
|
![]() |
| Tags |
| code, mappoint 2006, registering |
| ||||
| Posted By | For | Type | Date | |
| Spatial Data Importer Contest Submission - MP2K Magazine | This thread | Refback | 07-21-2008 01:13 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mappoint 2006 help? | c2linguist | Development | 0 | 06-17-2008 03:46 PM |
| Re: MapPoint 2006 | kaka | MapPoint 2006/2009 Discussion | 0 | 02-23-2007 03:23 AM |
| Difference between MapPoint 2006 and MapPoint 2006 Fleet | jlewis | MapPoint 2006/2009 Discussion | 1 | 11-21-2006 09:18 AM |
| MP 2006 & VB6 Sample Code | Mike2005 | MapPoint 2006/2009 Discussion | 1 | 06-18-2006 12:23 PM |
| MapPoint 2006, etc. | farm_cart | MapPoint 2006/2009 Discussion | 4 | 04-03-2006 12:28 PM |