Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» 如何获取重载函数的地址
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 如何获取重载函数的地址
flq_00000
新警察
UID 40720
Digest Posts 0
Credits 4
Posts 1
点点分 4
Reading Access 10
Registered 2008-7-31
Status Offline
#1
Post at 2008-7-31 00:08
Profile
|
Blog
|
P.M.
如何获取重载函数的地址
我有一个类:
TTest = class(TObject)
public
function GetSome(a : integer) : integer; overload;
function GetSome(s : string) : integer; overload;
end;
可以这样获取第一个重载函数的地址
--@TTest.GetS
ome
那么怎么样获取第二个重载函数的地址呢?
请高手指点
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2008-7-31 10:09
Profile
|
Blog
|
P.M.
直接写@TTest.GetSome怕是难以正确区分,得用类型的方式来区分吧。
也就是分别定义函数类型变量再赋值,再取地址。
skyjacker
版主
茶农
UID 2239
Digest Posts
9
Credits 617
Posts 269
点点分 617
Reading Access 100
Registered 2006-6-8
Status Offline
#3
Post at 2008-7-31 11:39
Profile
|
Blog
|
P.M.
|
“获取第一个重载函数的地址”,能否写个测试例子?
一壶清茶煮青春.
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 12:20
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008499 second(s), 9 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