Kiran G

Hi All,

I want to track the duration of all the calls made by my mobile. When I browsed through the internet I found that there are few functions like PhoneOpenCallLog, PhoneGetCallLogEntry and PhoneCloseCallLog to track the call log in the mobile. These functions are in phone.h. I included this header file in my code, but still I am getting a linker error as follows.

Error 3 error LNK2019: unresolved external symbol PhoneCloseCallLog referenced in function "public: int __cdecl CTrialCppApp::TestFunction(void)" ( TestFunction@CTrialCppApp@@QAAHXZ) TrialCpp.obj
Error 4 error LNK2019: unresolved external symbol PhoneGetCallLogEntry referenced in function "public: int __cdecl CTrialCppApp::TestFunction(void)" ( TestFunction@CTrialCppApp@@QAAHXZ) TrialCpp.obj
Error 5 error LNK2019: unresolved external symbol PhoneOpenCallLog referenced in function "public: int __cdecl CTrialCppApp::TestFunction(void)" ( TestFunction@CTrialCppApp@@QAAHXZ) TrialCpp.obj

I absoultely have no clue on where to add the phone.lib. I am using Visual Studio 2005. and Windows Mobile 5.0 Pocket PC SDK. Please guide.

Thanks,

Kiran G

kiran_venkatesan@hotmail.com



Re: Smart Devices Native C++ Development phone.h

Patrick Getzmann

Did you link with phone.lib





Re: Smart Devices Native C++ Development phone.h

Kiran G

Hi,

Thanks for the response. In Visual Studio 2005, I am not sure how to link the library. Can you suggest me how to link the library

Thanks,

Kiran G

kiran_venkatesan@hotmail.com





Re: Smart Devices Native C++ Development phone.h

Patrick Getzmann

in project explorer right click on the project and selct settings.

Than in the project settings dialog select "All configurations". Expand the "Linker" section, move to "Input" and add type "phone.lib" into the additional library field.

As i only have german version installed i don¡¯t know exacty if these are the right names, but you should be able to find that i think.





Re: Smart Devices Native C++ Development phone.h

Kiran G

Hi,

Thanks for that. It really helped. I added phone.lib where you mentioned and the Linker errors got solved. But now I tried deployng the code into my mobile. I tried using a simulator provided by Microsoft. When I tried deploying, I got this error.

The specified module could not be found.

Please help.

Thanks,

Kiran G

kiran_venkatesan@hotmail.com





Re: Smart Devices Native C++ Development phone.h

Patrick Getzmann

Did the error happen on the device and on the emulator

Be aware that not all emulators have phone functionality. You must choose one that has "phone" in its name.





Re: Smart Devices Native C++ Development phone.h

Kiran G

Hi,

I only tried on the emulator, will try on my mobile phone. Also, when i try displaying a messagebox, i get some junk characters on my emulator.

Thanks,

Kiran G

kiran_venkatesan@hotmail.com





Re: Smart Devices Native C++ Development phone.h

Patrick Getzmann

what are you trying to show with messagebox what kind of junk chars do you get