在编译新项目时总是提示有一个警告,从网上找到这个解决办法。哈哈还真管用。
Localisation of TIMESRV (tsrv_dst warning) CE 5.0
The only warning I have left on my platform build is as follows:
makeimg: Warning Localization FAILED: Could not find C:/WINCE500/ .../tsvc_dst.DLL|EXE|CPL
This appears to be because the module "timesrv.dll" which handles daylight saving time builds in a static library tsvc_dst.lib which includes a localisable string table "tsvc_dst.res". So, the file that
should be being localised is "timesrv.dll" and all the localising string tables are called "tsvc_dst.res".
The makefile in CESYSGEN is adding "tsvc_dst" to "servers.loc" so that when makeimg comes across this file, it can't find an executable an executable with that name, ergo the warning.
So....
1. I am assuming that "timesrv.dll" has not been localised correctly.
(Not too much of a problem for me, but I'm sure not the best situation if you're German, Spanish, Italian, etc....)
2. I am also assuming that I could patch my release directory copy of problem. But what is this? How do I get to localise "timesrv.dll" using the resources for "tsvc_dst.dll" ????
Anyone that's got this far down such a complicated (& admittedly boring) post deserves a prize!!!! If you can give me the answer, I might even send you one!!!!
This warning can be removed, and timesvc.dll correctly localised as
follows:
1. In the Plaftform/<Platname>/FILES folder, create or add to the file PreMakeImage.bat the following:
@echo off
echo PreMakeImg.bat entry.
pushd %_FLATRELEASEDIR%
if EXIST timesvc.dll (
echo Found timesvc.dll, renaming to tsvc_dst.dll
rename timesvc.dll tsvc_dst.dll
)
popd
echo PreMakeImg.bat exit.
@echo on
2. In the Plaftform/<Platname>/FILES folder, create or add to the file PreRomImage.bat the following:
@echo off
echo PreRomImage.bat entry.
pushd %_FLATRELEASEDIR%
if EXIST tsvc_dst.dll (
echo Found tsvc_dst.dll, renaming to timesvc.dll
rename tsvc_dst.dll timesvc.dll
)
popd
echo PreRomImage.bat exit.
@echo on