Click here to Skip to main content
15,065,324 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I really appreciate any help I can get, I want to develop a Skype userinterface for dissabled people, it must be a downscaled version of Skype, an easier human interface focused on video connection.
I hold a Bachelor degree in electronics Engineering with some programming experience but not too much, I have played around with Delphi some years back.
Edit: I have decided to use Visual Studio 2008 Visual Basic but I do have some problems startin, does anyone have a project which initialises ok that I can start with ?
I have understood so far that I need to:
1) Register the Skype4Com dll, done, I can select it under "add ref".
2) add ref to Skype4Com in my project.
3) Somehow initiate the conection to Skype.
I am running Vista 64bit, Visual Studio 2008 Express, Skype4Com in its newest version.
My Skype is downloaded a week ago and setup with 2 accounts at my 2 laptops and working fine.
My code looks like this:
[Form1.vb]
Public Class Form1
Public WithEvents oSkype As New SKYPE4COMLib.Skype
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class

The error I get is (In Danish, sorry)[Edit: translated]:
System.InvalidOperationException was unhandled
Message="An error occurred while creating the form. See Exception.InnerException order to get more information. The error is: Retrieving the COM class factory for component with CLSID {830690FC-BF2F-47A6-AC2D-330BCB402664} failed due to the following url error: 80040154th"
Source="Test"
StackTrace:
ved Test.My.MyProject.MyForms.Create__Instance__[T](T Instance) i 17d14f5c-a337-4978-8281-53493378c1071.vb:linje 190
ved Test.My.MyProject.MyForms.get_Form1()
ved Test.My.MyApplication.OnCreateMainForm() i C:\Users\Peter\AppData\Local\Temporary Projects\Test\My Project\Application.Designer.vb:linje 35
ved Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
ved Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
ved Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
ved Test.My.MyApplication.Main(String[] Args) i 17d14f5c-a337-4978-8281-53493378c1071.vb:linje 81
ved System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.COMException
Message="Retrieving the COM class factory for component with CLSID {830690FC-BF2F-47A6-AC2D-330BCB402664} failed due to the following url error: 80040154th"
Source="Test"
ErrorCode=-2147221164
StackTrace:
ved Test.Form1..ctor() i C:\Users\Peter\AppData\Local\Temporary Projects\Test\Form1.vb:linje 2
InnerException: 
In the "Immediate Window" it says:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in Test.exe
I really do not understand why this does not work, it was copied directly from the "how to" video at Youtube: http://www.youtube.c...feature=related
I do not understand why it does not work, the code is as simple as it gets, I appreciate any support I can get, unfortunately I am new to both Visual Studio VB and Skype4Com.
Thanks Peter
Posted
Updated 10-Oct-10 9:36am
v2

I got the same error....I appreciate some good reply to your question as well...
   
I have an update on the problem, I "moved" to my wifes laptop with Vista 32bit and the problem was gone, I did exactly the same so the code works but for some odd reason the Skype4Com.dll is not being "included" in the Vista 64bit case.

Of course it must run on my own laptop too so I will continue to search for a solution, does anyone know if it is a problem caused by windows, VS2008 or by the Skype4Com dll ?

Does anyone know when or if the Skype4COM will be available in a 64bit version ?

Does anyone know if it helps to install a piece of software with the dll included, e.g the Skype SEHE, I might try that when I get some time ?

Does anyone hnow if it will be the same problem when the application is deployed (published) to a Vista 64bit PC or is it only a question of it building or not ?


There some posts on this topic but, from the description, I can not figure out what to do, see my other post, link:

http://www.daniweb.com/forums/thread317068.html[^]

If you (or somebody else) can figure out exactly what is meant, please let me know.

Did you register the lib ?
where you able to add it under the "project - add ref" ?
Are you also running Visual Studio 2008, I can not upgrade to 2010 version due to hardware requirements ?

Please remember to update this post if you find a solution which work for you, I will of course update if I get it solved

I hope my English is understandable, if not please feel free to ask for an explanation, I am Danish so English is not my first language.
   
I fixed the problem!!!!!!

instead to compile it with x64 setting you have to compile it with x86 setting and the problem end!!!!
   
You are right, I wonder why I did not get a mail about a new answer in the forum.
But I also found it from searching the internet, with some more detailed description which will also work for a newcommer as myself.

Copied from someones post but it works the same for VB 2008.


In VC# Express, this property is missing, but you can still create an x86 configuration if you know where to look.
It looks like a long list of steps, but once you know where these things are it's a lot easier. Anyone who only has VC# Express will probably find this useful. Once you know about Configuration Manager, it'll be much more intuitive the next time.
1.In VC# Express 2005 [works with 2008 same], go to Tools -> Options.
2.In the bottom-left corner of the Options dialog, check the box that says, "Show all settings".
3.In the tree-view on the left hand side, select "Projects and Solutions".
4.In the options on the right, check the box that says, "Show advanced build configuraions."
5.Click OK.
6.Go to Build -> Configuration Manager...
7.In the Platform column next to your project, click the combobox and select "<New...>".
8.In the "New platform" setting, choose "x86".
9.Click OK.
10.Click Close.
There, now you have an x86 configuration! Easy as pie! :-)
I also recommend using Configuration Manager to delete the Any CPU platform. You really don't want that if you ever have depedencies on 32-bit native DLLs (even indirect dependencies). sds
4.In the options on the right, check the box that says, "Show advanced build configuraions."
5.Click OK.
6.Go to Build -> Configuration Manager...
7.In the Platform column next to your project, click the combobox and select "<New...>".
8.In the "New platform" setting, choose "x86".
9.Click OK.
10.Click Close.
There, now you have an x86 configuration! Easy as pie! :-)
I also recommend using Configuration Manager to delete the Any CPU platform. You really don't want that if you ever have depedencies on 32-bit native DLLs (even indirect dependencies).
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900