问题描述
我非常感谢我能获得的任何帮助,我想为残障人士开发Skype用户界面,它必须是Skype的缩小版本,这是一个更简单的专注于视频连接的人机界面.
我拥有电子工程学士学位,但具有一定的编程经验,但经验不足,几年前我曾在Delphi工作.
我已决定使用Visual Studio 2008 Visual Basic,但我确实遇到了一些问题,请问有人能初始化一个可以启动的项目吗?
到目前为止,我已经了解到需要进行以下操作:
1)注册Skype4Com dll,完成,我可以在添加引用"下选择它.
2)在我的项目中将ref添加到Skype4Com.
3)以某种方式启动到Skype的连接.
我正在运行Vista 64位,Visual Studio 2008 Express,Skype4Com的最新版本.
我的Skype一周前已下载并在我的2台笔记本电脑上设置了2个帐户,并且运行正常.
我的代码如下:
[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
我得到的错误是(对不起,丹麦语):
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:
在立即窗口"中显示:
类型``System.Runtime.InteropServices.COMException''的第一次机会异常发生在Test.exe中
我真的不明白为什么这不起作用,它是直接从Youtube的操作方法"视频中复制的:http://www.youtube.c...feature=related
我不明白为什么它不起作用,代码很简单,感谢获得的任何支持,很遗憾,我对Visual Studio VB和Skype4Com都是陌生的.
谢谢Peter
当然它也必须在我自己的笔记本电脑上运行,所以我将继续寻找解决方案,有人知道这是否是Windows,VS2008或Skype4Com dll引起的问题吗?
有谁知道何时或是否会以64位版本提供Skype4COM?
有谁知道安装包含dll的软件是否有帮助,例如Skype SEHE,我可以花点时间尝试一下吗?
有没有人知道将应用程序部署(发布)到Vista 64位PC时是否会遇到相同的问题,或者仅仅是它是否在构建的问题?
关于此主题有一些帖子,但是从描述中我无法弄清楚该怎么做,请参阅我的其他帖子链接:
http://www.daniweb.com/forums/thread317068.html [ ^ ]
如果您(或其他人)可以确切了解含义,请告诉我.
您注册库了吗?
在哪里可以在项目-添加引用"下添加它?
您是否还在运行Visual Studio 2008,由于硬件要求,我无法升级到2010版本?
如果您找到适合您的解决方案,请记住更新此帖子,如果解决了,我当然会更新
我希望我的英语是可以理解的,如果不能,请随时提出解释,我是丹麦人,所以英语不是我的母语.
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
这篇关于Visual Basic和Skype4Com问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!