Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
Supergeo Renews Partnership Agreement with Information & Science Techno System Co. in Japan
GISCI Begins Exam Development
Esri and Institute of Fire Engineers Partner to Improve Fire Prevention Planning
Canadian Organizations Shine at the 2013 Esri International User Conference
Atlantic Secures Key Environmental Services Designation from GSA
Conference Addresses the use of Geographic Intelligence for Business and Security

Latest GeoBids-RFPs
GPS Equipment*Canada
Surveying Services*Canada
Hydrological Assessment*Belize
Nautical Charts*Poland
Software & Telemetry GPS

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: GISList: Problem while Creating new layer in Mapx
Date:  03/06/2002 05:07:03 PM
From:  Shanmugam Ganeshkumar



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/


Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group