Re: WM2005 SDK

Tech-Archive recommends: Fix windows errors by optimizing your registry



Returned as in the function returns it, or the Oid value contains a negative
number? If it's the return value can you post the exact value -this will
give an indication of the error. One thing to be aware of, make sure you
aren't calling this on a new Contact item you've created but not saved, the
Oid is only allocated when the item is saved to the database.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"Nick" <Nick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:39D7C4E5-1866-4C93-8A0D-4277A8B21E8D@xxxxxxxxxxxxxxxx
> Hi,
>
> I'm trying to convert an existing 2003 pocket pc application to WM2005.
> Every time I call get_Oid() on an IContact item I get a large negative
> value
> returned. This call works fine when used with IAppointment items.
>
> I'm trying this using the emulator. Has anyone else had the same
> problem?.
>
> Thanks in advance
> Nick.


.



Relevant Pages

  • Re: Extending Calendar Context Menu - Event Handling - Finding Site
    ... Peter Foot ... This piece of code gets the OID of the first element selected... ... > But How do I use those OIDs for reaching my Calendar Appoinment Data? ... > Is there any sample code that shows using OIDs for accessing Calendar ...
    (microsoft.public.pocketpc.developer)
  • Re: Sim Contacts from OID
    ... Peter Foot ... Device Application Development MVP ... I get a large negative number as OID for contacts on PPC, ... for Sim Contacts, I get a positive large integer.... ...
    (microsoft.public.pocketpc.developer)
  • Re: Edit already Existing Task
    ... You can get at a Task object either through the session.Tasks.Items ... collection or if you have the oid use the constructor which takes an item ... Peter Foot ...
    (microsoft.public.pocketpc.developer)
  • Re: How to get oid for newly created Contact entry?
    ... If I switch the Saveand Displaycalls as shown below, the returned OID ... >> Peter Foot ... >> Windows Embedded MVP ...
    (microsoft.public.pocketpc.developer)