Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 反馈BUG:cnpack 格式化错误 缺失有效符号 当前标识符 constructor
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 反馈BUG:cnpack 格式化错误 缺失有效符号 当前标识符 constructor
guanlianan
新警察
UID 388007
Digest Posts 0
Credits 13
Posts 5
点点分 13
Reading Access 10
Registered 2017-3-13
Status Offline
#1
Post at 2017-3-13 14:13
Profile
|
Blog
|
P.M.
反馈BUG:cnpack 格式化错误 缺失有效符号 当前标识符 constructor
反馈BUG:
cnpack 格式化错误 缺失有效符号 当前标识符 constructor
Image Attachment
:
1.jpg
(2017-3-13 14:13, 129.51 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2017-3-13 16:41
Profile
|
Blog
|
P.M.
感谢报告,请问能否将出错的源文件发我们?
master@cnpack.org
(出错框刚好挡住了关键的源码)
guanlianan
新警察
UID 388007
Digest Posts 0
Credits 13
Posts 5
点点分 13
Reading Access 10
Registered 2017-3-13
Status Offline
#3
Post at 2017-3-13 19:25
Profile
|
Blog
|
P.M.
回复 #2 Passion 的帖子
您好,已经把源文件发给您了
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2017-3-13 23:00
Profile
|
Blog
|
P.M.
收到。经分析,是TTypeName = object 这种老式的声明里原先不支持published以及constructor/destructor,现已修正让其支持了,下一每日构建版本将集成。
guanlianan
新警察
UID 388007
Digest Posts 0
Credits 13
Posts 5
点点分 13
Reading Access 10
Registered 2017-3-13
Status Offline
#5
Post at 2017-3-14 08:12
Profile
|
Blog
|
P.M.
回复 #4 Passion 的帖子
原来TTypeName = object 是老式的声明吗?
但是我声明为 TTypeName = class的时候,在构造里初始化FParamDict: TDictionary<string, string>;就会报错,
只有声明为TTypeName = object的时候才正常初始化。请问,我应该怎么做才能实现我的要求?
感谢回答!
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2017-3-14 13:34
Profile
|
Blog
|
P.M.
新的每日构建版887已支持,可下载试用:
http://www.cnpack.org/downbuilds.php
请问构造函数里是如何初始化FParamDict: TDictionary<string, string>;的?感觉这样简单的语句照理不应该出错才对。
guanlianan
新警察
UID 388007
Digest Posts 0
Credits 13
Posts 5
点点分 13
Reading Access 10
Registered 2017-3-13
Status Offline
#7
Post at 2017-3-15 08:05
Profile
|
Blog
|
P.M.
回复 #6 Passion 的帖子
在发给您的源文件(uWxHelper.pas)里可以看到以下的构造函数初始化代码:
constructor TWxHelper.Create;
begin
FParamDict := TDictionary<string, string>.Create;
end;
guanlianan
新警察
UID 388007
Digest Posts 0
Credits 13
Posts 5
点点分 13
Reading Access 10
Registered 2017-3-13
Status Offline
#8
Post at 2017-3-18 08:04
Profile
|
Blog
|
P.M.
回复 #6 Passion 的帖子
在发给您的源文件(uWxHelper.pas)里可以看到以下的构造函数初始化代码:
代码很简单,就一句:
constructor TWxHelper.Create;
begin
FParamDict := TDictionary<string, string>.Create;
end;
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 18:11
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.013655 second(s), 10 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats