Community of VE/MapPoint Users and Developers
This is a discussion on How to programming using VC6.0 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to program using VC6.0,And when I use its OCX to open a specfic mappoint,by the way ,it is ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to programming using VC6.0 Code: BOOL CRouteDirectionDlg::OnInitDialog()
{
CDialog::OnInitDialog();
..........
this->m_ctlMappoint.OpenMap("C:\\lazone.ptm");
...
}
|
| ||||
|
No, the double backslash looks right for C. The backslash is used as an escape character for producing special characters, eg. the newline is "\n" To produce a conventional backslash you just repeat it. I have an article pending (Eric said it should be published next week) about using MapPoint from VC++ without MFC. My code has tested great with the Microsoft and Intel compilers, and I've had someone test against C++ Builder (that required a few changes to get it to work). I haven't tried to programmatically open a pre-existing map, but if you have a wider problem with the COM interface, it might help identify it? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
| Here is the method i use to open a new map from VC++
// Bidouille pour eviter l'erreur sur l'assert SetCapture(); // Fin bidouille // Ouverture de la carte mappoint _variant_t tVar; short Var = 2; tVar = Var; _cMap = m_mapPointCtrl.NewMap(tVar); // Bidouille necessaire pour eviter un plantage (probleme d'activation du controle) m_pCtrlCont->OnUIDeactivate(m_mapPointCtrl.GetCtrlSite()); m_pCtrlCont->OnUIActivate(NULL); SetFocus(); ReleaseCapture(); // Fin bidouille |
| |||
| Quote:
M |
![]() |
| Tags |
| programming, vc60 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming using excel VBA... No GPS | KUSteveo | MapPoint 2006/2009 Discussion | 5 | 09-20-2008 02:33 PM |
| Ambiguous messages ( programming or not programming? ) | Mohamed | MapPoint 2006/2009 Discussion | 1 | 06-13-2006 04:35 PM |
| Programming MapPoint via .NET | Anonymous | MP2K Magazine Articles | 1 | 02-21-2006 10:42 AM |
| Programming in VB.Net | Anonymous | MapPoint 2006/2009 Discussion | 3 | 12-01-2003 10:52 AM |
| In using MapPoint in programming with VB how do yo.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-27-2001 02:53 AM |