DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: melqui
今日帖子: 5
在线用户: 7
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2018/8/12 6:20:05
标题:
FastReport v6.0.7 and RAD Studio XE10.2.3 DONT COMPILE 浏览:2680
加入我的收藏
楼主: can you help me?

I need compile the FastReport v6.0.7 by "Flying Wang" but I h-a-v-e one problem:

in unit "frxSynMemo.pas" in folder "Source" h-a-v-e the follow line (line 308):

  {$IFNDEF FPC}
  WordChars = ['a'..'z', 'A'..'Z', '§Ñ'..'§ñ', '§¡'..'§á', '0'..'9', '_'];
  {$ELSE}
....

In RAD Studio XE10.2.3 3231 dont compile because "type":
[dcc32 Error] frxSynMemo.pas(380): E2010 Incompatible types: 'AnsiChar' and 'string'


---->>>> cause:   '§Ñ'..'§ñ', '§¡'..'§á'  <---------

How fix it?

thanks for your time
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 homejun (homejun) ★☆☆☆☆ -
盒子活跃会员
2018/8/12 8:12:48
1楼: FPC。  这一句在delphi下应不编译才对,条件编译语句检测到你定义FPC了。
----------------------------------------------
-delphi新资讯站 http://www.delphigear.cn
作者:
男 hardnut (麦轲数据管家) ★☆☆☆☆ -
普通会员
2018/8/12 8:44:52
2楼: this problem caused by charset (maybe),
you can open the source code by a editor then save it as UTF-8 with BOM.
i strongly recommend you use Beyond compare , its the best tool for this type problem i have used. it has the best support for all kinks of charset.
----------------------------------------------
UniKeeper V10.40 -- 您最贴心的个人数据管理助手
作者:
男 wang_80919 (Flying Wang) ★☆☆☆☆ -
普通会员
2018/8/12 21:59:43
3楼: ReadMe.txt
2.3
2.4
if has pagecode error,
use notepad++ open it codepage is GBK and save as utf8 with bom.
----------------------------------------------
(C)(P)Flying Wang
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2018/8/13 11:10:12
4楼: First, I was NOT the one who defined the "{$ IFNDEF FPC} directive", it is set to this version, probably if it was not the FastReport developers, it must have been someone who distributed this pirated version.

Second, I know that in order to compile the unit, I just have to "take a character" in "§Ñ '..' § ',' §¡ '..' §á" AND IS READY! It is not necessary to use any software to compare or not the units!

However, I do not know the consequences of using the components!

I put the question here, because within the unit "frxSynMemo.pas" has a reference to "Flying Wang":

Line 1 in unit FrxSynMemo.pas
// Fix or Add or Remove By Flying Wang 3 í í í a a (AiChiZhuTouRou)

I expected the author to pronounce to give a direction of how to fix the reason of the use of double characters in a variable that uses simple character, in the case:

[b]WordChars = ['a'..'z', 'A'..'Z', '§Ñ'..'§ñ', '§¡'..'§á', '0'..'9', '_'];[/b]

No one knows anything, by the way. like me.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2018/8/13 23:05:55
5楼: Thanks to @wang_80919 for the remark:

PROBLEM SOLVED!

1 - Open the "frxSynMemo.pas" file in Notepad ++
2 - I changed the character set to GBK (GB2312 Simplified)
3 - converted to UTF-8 (with BOM)
4 - save a new copy of the file to use it in the compilation
5 - FastReport v6.0.7 compiled and installed on RAD Studio XE10.2.3

NOTE:
Probably the file in the download was changed by someone before it was posted, so this download was not in the way it should be (at least for the file "frxSynMemo.pas" in particular)

Thank you all
--------
感谢“wang_80919”的评论:

问题解决了!

1 - 在Notepad ++中打开“frxSynMemo.pas”文件
2 - 我将字符集更改为GBK(简化GB2312)
3 - 转换为UTF-8(带BOM)
4 - 保存文件的新副本以在编译中使用它
5 - 在RAD Studio XE10.2.3上编译和安装FastReport v6.0.7

注意:
可能是下载文件在发布之前被某人更改了,所以这次下载不是应该的样子(至少对于“frxSynMemo.pas”文件而言)

谢谢大家
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行705.0781毫秒 RSS