skype, late binding

lala

Registered User.
Local time
Today, 11:28
Joined
Mar 20, 2002
Messages
741
Hi

how do i not only late bind skype SKYPE4COMLib driver but also check if the user has skype installed and don't do anything if they dont

the below gives an error on the 2nd line
"ActiveX componenet can't create object"

Code:
    Dim sky As Object

    Set sky = CreateObject("SKYPE4COMLib.skype")

the point is that i don't want to reference this library just in case the user doesn't have skype so that they don't get an error on opening the db

and second, if they click on the skype field in the form - again, nothing happens if they don't have skype installed
and if they do - it will call the number or username in the skype field in the form

thank you
 
If it doesn't exist, it should return error 429. You can then use error handling to trap for that error and do nothing.

Note for benefit of posterity: Both "CreateObject" and "GetObject' will return error 429 but it actually means different thing -

GetObject's 429 = "We couldn't find a running instance of this object"
CreateObject's 429 = "We couldn't find the library for this object anywhere on the computer"
 
but i'm getting this error even on a computer that has skype installed.
 

Users who are viewing this thread

Back
Top Bottom