Sign in to follow this  
Followers 0
anixon

Objects

3 posts in this topic

My application is relient on the Skype4Com.dll version 1.0.31.0 being present in Program Files/Common Files/Skype/. Without the Skype software installed or the DLL in the Common Files folder for Skype this code used for testing peruposes confirms that it could not create the Skype object

$oSkype = ObjCreate("Skype4COM.Skype")
if not IsObj($oSkype) then
 Msgbox(0,"Error","$oSkype is not an Object. " & IsObj($oSkype))
else
 Msgbox(0,"Error","Successfully created Object $oSkype. " & IsObj($oSkype))
endif

With the Skype4Com.dll copied to the Skype Common Files Folder the Skype Object could be created.

My question is given that there are many versions of the Skype4Comm.dll how do I select and confirm that the object has been created with the required Skype4Com.dll version?

Help is always appreciated.. Ant..:x

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Can't you just use FileGetVersion on the Dll file?

Yes that is correct but when creating the object how do you select the version and its location that you want to create the object with?

Ant..

Edited by anixon

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You can't.

However, AutoItObject allows it with function called _AutoItObject_ObjCreateEx().

It would be something like this (if I got CLSID right):

$oSkype = _AutoItObject_ObjCreateEx($sPathToDLL, "{830690FC-BF2F-47A6-AC2D-330BCB402664}")

AutoItObject is UDF that you can find in examples.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0