Re: Phone logs
- From: "James" <james_devitt@xxxxxxxxxxxx>
- Date: Wed, 13 Feb 2008 10:20:20 -0700
Hello Peter,
I used code from MSDN. In my app I just imported the 3 class files to run Phone.vb. Please see
http://msdn.microsoft.com/msdnmag/issues/04/10/NET/ go to the bottom of this
page and you will see the code link (NETColumn0410.exe).
Note, in my 2003 emulator I recd "12/31/00 5:00:00PM" for all records and "12/31/00 4:00:00PM" on my touch/wm6 - perhaps not significant but the only thing I can add.
Found different sources for the structure but all are the same! Experimenting with the structure after but made no head way. You will see it can tell how many records there are, just not translating the info. In the structure you will see the filetime is the first field and it is incorrect too!
I thought the cbsize was wrong as it is declared Integer - maybe its should be int16 so I tried it and also int32 - no difference?!
There must be a way!!!
-James
"Peter Foot" <feedback@xxxxxxxxxxxxxxxxxxxx> wrote in message news:FBF354D3-5DF2-4745-B73F-4B344108E9D5@xxxxxxxxxxxxxxxx
That code doesn't include call log. Can you post your definition of CALLLOGENTRY and the code you are using to call it..
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"James" <james_devitt@xxxxxxxxxxxx> wrote in message news:0822DF63-C074-4287-823C-5CF97391F9EA@xxxxxxxxxxxxxxxx"Christopher Fairbairn" <christopher@xxxxxxxxxxxxxx> wrote in message news:B1BBF024-84C8-4E8D-8414-F08953C65A6A@xxxxxxxxxxxxxxxxHi,
"James" <james_devitt@xxxxxxxxxxxx> wrote in message news:4F6149BD-6A4C-4D81-85B8-0C132A5F66C7@xxxxxxxxxxxxxxxxI cannot find any info accept for MSDN showing P/Invoke. Downloaded a VS solution which has both C# and a VB project. Both compile and run but the Phone test shows incorrect info!
As far as I know that is the only way to do it (call PhoneOpenCallLog etc).
When you say the information is incorrect what do you mean? Is the entire structure showing wrong values, or is this something isolated to one or two fields, such as the phone number, or a timestamp being incorrect?
Does this happen in a phone enabled emulator or only on an actual device?
Hope this helps,
Christopher Fairbairn
Hello Christopher,
None of the structure is correct. Only the number of records was correct. Here is the link to the code downloaded from MSDN http://msdn.microsoft.com/msdnmag/issues/04/10/NET/ go to the bottom of this page and you will see the code link (NETColumn0410.exe).
There is a function there that passes back an array of typed records. Using For Each I use name and number which are wrong for each record. I remove a log entry from my phone and the loop is correct but all fields are wrong!
I have looked at the structure and it looks correct. I used an emulator using 2003 and also my device with is an HTC Touch with WM6. WM6 would make sense but not the 2003 as the code is from vs2003.
Any thoughts you have would be very very helpful.
-James
- Follow-Ups:
- Re: Phone logs
- From: Peter Foot
- Re: Phone logs
- References:
- Phone logs
- From: James
- Re: Phone logs
- From: James
- Re: Phone logs
- From: Peter Foot
- Phone logs
- Prev by Date: Re: Phone logs
- Next by Date: Re: Phone logs
- Previous by thread: Re: Phone logs
- Next by thread: Re: Phone logs
- Index(es):
Relevant Pages
|