|
I usually use MapPoint in C++ without MFC.
I assume csName is an MFC CString?
The problem might be because the COM interface is expecting its own flavour of string (eg. a BSTR), rather than a 'smart CString object'.
I've just looked at my code (non-MFC, and using STL), and I pass an STL string to a MapPoint method by converting it to a (const char*). When receiving data (ie. querying a field) I have to go via VARIANTs.
Note that your hard-coded string constants are also of type (const char*).
Richard |