Re: [問題] alias?

看板Programming作者 (睡魔)時間18年前 (2007/02/01 16:13), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/3 (看更多)
※ 引述《yorjing (托兒所嬰兒)》之銘言: : 請為各位大大 : 這是什麼? : 好像很常見 : 可是在網路上又查不到想要的 : http://0rz.tw/e62om : 囧 : 請問一下alias在程式語言裡面代表什麼? : 有請各位大大指導一下 代表「別稱」. 例如VB裡的: Private Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextW" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long 就表示你在Code中使用GetWindowText()時, 其實是在用GetWindowTextW() 也就是說GetWindowText()是GetWindowTextW()的Alias. 這是維護舊code時很常見的做法. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 202.134.126.84 ※ 編輯: leicheong 來自: 202.134.126.84 (02/01 16:14)

02/01 19:02, , 1F
恩 謝謝大大解答
02/01 19:02, 1F
文章代碼(AID): #15mQ4gms (Programming)
討論串 (同標題文章)
本文引述了以下文章的的內容:
1
3
18年前, 02/01
完整討論串 (本文為第 2 之 3 篇):
1
2
1
1
1
3
18年前, 02/01
文章代碼(AID): #15mQ4gms (Programming)