Click here to get back home

Contact.WebPage URI returning null when missing http://

 HomeNewsGroups | Search

microsoft.public.smartphone.developer - Developing software for MS Smartphone? This is your group! 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Contact.WebPage URI returning null when missing http:// JT 02-15-2006
Posted by JT on February 15, 2006, 3:57 pm
Please log in for more thread options
Ok, it seems like there's no way to extract the WebPage property from a
Contact when created through the phone address book and given the value
www.something.com (missing the http:// making it an invalid URI value).
I've also tried accessing it trough the ContactProperty collection
(ContactProperty[WebPage]) with no luck.
Is my only option to do it natively? And how much work would it
involve since I'm not very familiar doing things natively. Thank you.


Posted by JT on February 15, 2006, 6:55 pm
Please log in for more thread options
Would this require creating a dll which would be a C++ wrapper around
the POOM and then importing this dll into my project? Like the Sample
POOM Wrapper project available on the microsoft site.

Any other solutions to this?


Posted by Peter Foot [MVP] on February 16, 2006, 6:52 am
Please log in for more thread options
The following works, as it returns the string contents of the field -
doesn't try and interpret it as a full Uri:-
[C#]
session.Contacts.Items[0].Properties[Microsoft.WindowsMobile.PocketOutlook.ContactProperty.WebPage]

[VB]

session.Contacts.Items(0).Properties(Microsoft.WindowsMobile.PocketOutlook.ContactProperty.WebPage)



Peter


--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

show/hide quoted text



Similar ThreadsPosted
Contact.WebPage returning null on "www.###.com" February 14, 2006, 11:57 am
BT Serial Port Option Missing under Configuration.....File also missing in Windows directory, any ideas anyone or can someone send me the files to copy in please.... June 29, 2006, 7:51 am
SmsSendMessage returning error code 120 April 3, 2007, 3:08 am
WZCQueryInterface not returning results for INTF_PREFLIST October 1, 2007, 8:34 pm
How do I write to a file from local webpage in IE on smart phone? January 6, 2009, 11:32 am
netcf application hang returning from deactivation? May 16, 2007, 9:40 am
listviewitem in hitTest always null January 22, 2009, 9:51 am
null value parameter in POST request (HttpSendRequest) June 2, 2005, 8:35 am
is there a null camera available for windows mobile 5.0 smartphone February 2, 2006, 3:28 am
Missing CompleteAuthToken in WM 6.0 December 29, 2008, 12:28 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy