Hello Listers,
I got problem when i try to create a new layer in MapX using visual c++. I want to create a layer whose Coordsys is LatiLongi. i.e it can be done by setting the fifth value of the construtor with value "1" while creating a new layer.I saw the documentation of the MapX it says u can give the unwanted fileds as NULL.But when I give that compiler returns errror saying,=20
Compiling... temp_displayDlg.cpp C:MyProject emp_display emp_displayDlg.cpp(125) : error C2664: 'CreateLayer' : cannot convert parameter 2 from 'const int' to 'const struct tagVARIANT &' Reason: cannot convert from 'const int' to 'const struct tagVARIANT' No constructor could take the source type, or constructor overload resolution was ambiguous Error executing cl.exe.
temp_displayDlg.obj - 1 error(s), 0 warning(s)
The code is=20
try { CMapXLayer layer=3Dm_ctrl_map.GetLayers().CreateLayer("Temp",NULL,1,NULL,1): // the last one refers to LatiLongi settings of CoordSys }catch(COleDispatchException *e) { e->ReportError(): e->Delete(): } catch (COleException *e) { e->ReportError(): e->Delete(): }
Can anyone help me.
thank you,
Regards,
Ganesh
To unsubscribe, write to gislist-unsubscribe@geocomm.com ________________________________________________________________________ Setup a GeoCommunity Account and have access to FAST DataDownloads and Premium Career Posting at a discounted rate! https://www.geocomm.com/cgi-bin/accounts/login
On-line Archives available at http://spatialnews.geocomm.com/community/lists/
|