 |
| Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 15th, 2010, 09:14 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Sir , After i proceed with your hint,
i mean after i change the code like
foreach (System.Collections.Generic.List<GMap.NET.Point> tilePoint in Core.tileDrawingList)
its giving me a Error like
[Error 1 Cannot convert type 'GMap.NET.Point' to 'System.Collections.Generic.List<GMap.NET.Point>'
]
|
|

November 15th, 2010, 09:34 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
tileDrawingList returns a List<GMap.NET.Point>, so each item in the list is a GMap.NET.Point, not a List<GMap.NET.Point> itself. So instead of var, use GMap.NET.Point.
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

November 16th, 2010, 01:10 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Thanks Alot Sir,
Thats works :)
|
|

November 16th, 2010, 01:56 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Good Morning Sir,
now am facing another trouble with .net 2
if(opt.Contains("http://"))
its trigger a error as
Error 1 'string' does not contain a definition for 'Contains)
what the error might be?
|
|

November 16th, 2010, 04:27 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
string.Contains is not supported in the Compact Framework 2.0. To check out this stuff for other problems you run into, first take a look at the MSDN documentation:
http://msdn.microsoft.com/en-US/libr...(v=VS.80).aspx
Each member supported by CF has a tiny mobile icon. For Contains, there's none. Then Google will tell you what to do next:
http://www.google.com/#hl=en&source=...ai=&fp=1&cad=b
The trick is to use IndexOf instead which returns -1 when the string is not found.
Cheers,
Imar
|
|

November 16th, 2010, 06:06 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
opt.IndexOf ("http://")
Error 1 Cannot implicitly convert type 'int' to 'bool'
this is the error am getting while using indexof in coding Sir?
|
|

November 16th, 2010, 06:17 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Take another look at the MSDN documentation I linked to; IndexOf returns in integer (-1 when the string is not found), and not a bool as Contains does....
Imar
|
|
 |