For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2006 > how to access call history with embedded vc++









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to access call history with embedded vc++
[watta]

2006-01-25, 2:31 pm

What is the right way to access the smartphone's call history? I tried the phone API, but I always get an error message that the phonep.h is not found. Pls help, I'm very ... :-(

code:
CALLLOGENTRY CallLogEntry; HRESULT hr; hr = S_OK; HANDLE ph; CallLogEntry.cbSize = sizeof(CALLLOGENTRY); hr = PhoneOpenCallLog(&ph); if(hr==S_OK) while(PhoneGetCallLogEntry(ph, &CallLogEntry)==S_OK) { if(CallLogEntry.iom==IOM_OUTGOING ) { // ... } } }
Alex Feinman [MVP]

2006-01-26, 4:01 am

phone.h is in the SmartPhone 2003 SDK. Make sure you have installed it
*after* you installed eVC 4

"[watta]" <watta.227vlu@mail.codecomments.com> wrote in message
news:watta.227vlu@mail.codecomments.com...
>
> What is the right way to access the smartphone's call history? I tried
> the phone API, but I always get an error message that the phonep.h is
> not found. Pls help, I'm very ... :-(
>
>
> Code:
> --------------------
>
> CALLLOGENTRY CallLogEntry;
> HRESULT hr;
> hr = S_OK;
> HANDLE ph;
>
> CallLogEntry.cbSize = sizeof(CALLLOGENTRY);
>
> hr = PhoneOpenCallLog(&ph);
>
> if(hr==S_OK)
> while(PhoneGetCallLogEntry(ph, &CallLogEntry)==S_OK)
> {
> if(CallLogEntry.iom==IOM_OUTGOING )
> {
> // ...
> }
> }
>
> }
>
> --------------------
>
>
>
>
> --
> [watta]
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>


[watta]

2006-01-27, 7:04 pm

I installed it in the right order, the 'Hello World' application compiled OK.
the exact error message when I try to build my program is this:
"error LNK2019: unresolved external symbol _PhoneGetCallLogEntry referenced
in function "long __cdecl WndProc(struct HWND__ *,unsigned int,unsigned
int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)"

"Alex Feinman [MVP]" wrote:

> phone.h is in the SmartPhone 2003 SDK. Make sure you have installed it
> *after* you installed eVC 4



Alex Feinman [MVP]

2006-01-28, 3:58 am

Specify phone.lib in the linker inputs in the project proeprties

"[watta]" <watta@discussions.microsoft.com> wrote in message
news:F787C4EC-28FE-4946-BA7C-4358FA09EFC9@microsoft.com...
>I installed it in the right order, the 'Hello World' application compiled
>OK.
> the exact error message when I try to build my program is this:
> "error LNK2019: unresolved external symbol _PhoneGetCallLogEntry
> referenced
> in function "long __cdecl WndProc(struct HWND__ *,unsigned int,unsigned
> int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)"
>
> "Alex Feinman [MVP]" wrote:
>
>
>


[watta]

2006-01-28, 7:56 am

Thank you very much! It works!! :)

"Alex Feinman [MVP]" wrote:

> Specify phone.lib in the linker inputs in the project proeprties
>
> "[watta]" <watta@discussions.microsoft.com> wrote in message
> news:F787C4EC-28FE-4946-BA7C-4358FA09EFC9@microsoft.com...
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com