|
|||
|
Dear Sir,
I meet a problem when I call a activeX com method, please give some guide, thank you. my code: EvoVoIPClient.OnAddUser=function(UserID,ChannelID) { trace("OnAddUser "+ChannelID+" "+UserID+" "+EvoVoIPClient.GetUser(UserID)) } result is "OnAddUser 8 12 undefined", meaning EvoVoIPClient.GetUser(UserID) is undefined, it's need a object according manual. the activeX manual is: Function GetUser(nUserID As Long) As User Parameters: Name Type Optional Default Description nUserID Long No - The user ID of the user to examine. Method description: Get the properties of a user, i.e. nickname, status, sound quality, etc. the vb example code is: Private Sub evoclient1_OnAddUser(ByVal nUserID As Long, ByVal nChannelID As Long) Dim User As ConaitoLib.User User = evoclient1.GetUser(nUserID) AddStatus1Message ("User " & User.szNickName & " joined " & evoclient1.GetChannelPath(nChannelID)) End Sub |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|