Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Registering MapPoint 2006 through code within the Development forums, part of the MapPoint Desktop Discussion category; My application has an embedded MapPoint 2006 control and works as expected when the current user is the same user ...
| |||||||
| Today's Posts | Twitter Feed | 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 www.comfortsoftware.be www.expertsoftware.be MapPoint coding demo |
| |||
| 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 |
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 02:46 PM |
| Re: MapPoint 2006 | kaka | MapPoint Desktop Discussion | 0 | 02-23-2007 02:23 AM |
| Difference between MapPoint 2006 and MapPoint 2006 Fleet | jlewis | MapPoint Desktop Discussion | 1 | 11-21-2006 08:18 AM |
| MP 2006 & VB6 Sample Code | Mike2005 | MapPoint Desktop Discussion | 1 | 06-18-2006 11:23 AM |
| MapPoint 2006, etc. | farm_cart | MapPoint Desktop Discussion | 4 | 04-03-2006 11:28 AM |