Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2011, 04:48 AM
Junior Member
 
Join Date: Jan 2006
Posts: 16
Default call activeX com method problem

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
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:01 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.