看板 Programming 關於我們 聯絡資訊
※ 引述《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)
yorjing:恩 謝謝大大解答 61.216.150.133 02/01 19:02