Need help compiling Today Screen Native Code plug-in

I installed eMbedded Visual C++ 4.0 (SP3) and downloaded the samples as listed here http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/TodayScrn.asp

i've been trying to follow the steps in the article but I can't get the unamanaged code to compile, I installed the Pocket PC 2003 SDK and referenced the directories for the inclulde and lib files but I get these errors

Compiling...
StdAfx.cpp
TodayScreenDataMgr.cpp
Linking...
Creating library X86Rel/TodayScreenDataMgr.lib and object X86Rel/TodayScreenDataMgr.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _MapViewOfFile referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol __imp__CreateFileMappingW referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _wcscat referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _wcscpy referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _wcslen referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol __alloca_probe referenced in function _TodayScreenDataMgr_Open
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _UnmapViewOfFile referenced in function _TodayScreenDataMgr_Close
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol __imp__CloseHandle referenced in function _TodayScreenDataMgr_Close
TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol __imp__GetTickCount referenced in function _TodayScreenDataMgr_setTodayData
X86Rel/TodayScreenDataMgr.dll : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

I don't know what to do now, I know diddly squat about c++, I'm just trying to follow what the article says.



Answer this question

Need help compiling Today Screen Native Code plug-in

  • CaoxiCao

    Not immediately. WM5 requires VS2005. VS2005 should be able to convert this project automatically

  • kenmcd4

    No, I am not. I understand your position, but please, understand mine. It's not like I closed the thread or anything. "Diddly-squat" was OP's own expression. I simply suggested that in order to use C++ SDK samples it is a good idea to familiarize yourself with the environment and the language first.

    Regarding this sample - Jim (the referenced article's author) and I had a discussion back in 2003 about the reasons why publishing it was a bad idea. Among those reasons was that it would require a person, who is not familiar with native code, figure things out while not being prepared to do so.

    In any case, I've converted this project to eVC4/WM2003 SDK. You can get the project from http://www.alexfeinman.com/download.asp doc=TodayScreenSupport_UnManaged.zip



  • Jon Abbott

    some direction would be nice.
  • junxian.chen

    It appears at link time (the time after compile when the 'linker' is attempting to link up all your .obj files into a single package either an exe or a library) you are missing references to libraries upon which your compiled source code objects (.obj files) are dependent.  you will need to add these to the project settings.  I will attempt to compile and link it and report back to you what is needed, but you would first need to post the article or location of the exact source you are attempting to create.   Where did it come from

     

    TheBadEye



  • Sukhbir Dalal

    If you know diddly-squat about C++, then you probably would be better off not trying this sample.

  • eyaler1

    Thank you, will it be compatible with Windows Mobile 5 (before I go into the trouble of compiling and getting frustrated on why it doesn't work)
  • Need help compiling Today Screen Native Code plug-in