tsvc_dst.DLL 警告的解决办法

在编译新项目时总是提示有一个警告,从网上找到这个解决办法。哈哈还真管用。

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值