在已发布的可视化基础程序中运行VLC [英] Running VLC in a published visual basic program

查看:89
本文介绍了在已发布的可视化基础程序中运行VLC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个visual Basic程序,可以跟踪我的800多部DVD电影收藏。我使用AxVLPluginV2包含了VLC。程序在调试模式下完全按预期运行,但是当我发布程序并运行它时,我在尝试播放电影时出错。



您的应用程序中发生了未处理的异常。如果您单击继续,应用程序将忽略此错误并尝试继续。如果您单击退出。应用程序将立即关闭。



无法加载文件或程序集'AxInterop.AXVLC,Version = 1.0.0.0,Culture,PublicKey或其中一个依赖项。系统找不到指定的文件。




正如我之前所说的,在调试模式下运行正常,我可以播放没有问题的电影,但是当我编译并发布它以便它自己运行时我得到了错误。



AxInterop.AXVLC.dll位于MyMovies项目目录中。



darby


当你出生时,你哭了,世界很高兴。

过你的生活,这样当你死的时候奥尔德哭了,你很高兴!

~古老的印第安谚语〜



我尝试过的事情:



我不知道还能尝试什么。程序在调试时运行正常,但是当我编译并发布它时,它会抛出错误。我不确定AxInterop.AXVLC.dll应该在哪里。

I have created a visual Basic program that keeps track of my 800+ DVD movie collection. I included VLC using AxVLPluginV2. The program runs completely as expected in debug mode, but when I publish the program and run it, I get an error when I try to play the movie.

"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click quit. the application will close immediately.

Could not load file or assembly 'AxInterop.AXVLC, Version=1.0.0.0, Culture, PublicKey or one of its dependencies. The system cannot find the file specified."


As I said earlier, under debug mode it runs fine, and I am able to play a movie with no problems, but when I compile it and publish it so it will run on its own I get the error.

AxInterop.AXVLC.dll is in the MyMovies project directory.

darby

"When you were born you cried and the world rejoiced.
Live your life so that when you die the world cries and you rejoice!"
~Old Indian Proverb~

What I have tried:

I don't know what else to try. The program runs fine as it is under debug, but when I compile and publish it, it throws the error. I'm not sure where AxInterop.AXVLC.dll is supposed to be.

推荐答案

您部署的副本要么缺少AxInterop.AXVLC.dll和/或VLC播放器机器上没有安装。



AxInterop dll是一个垫片,允许你的应用程序与库通信。它不是该库的替代品。您仍然需要部署正在使用的库。
Your deployed copy is either missing the AxInterop.AXVLC.dll and/or VLC Player is not installed on the machine either.

The AxInterop dll's are a shim that allows your app to talk to a library. It is NOT a replacement for that library. You still need to deploy the library you're using.


这篇关于在已发布的可视化基础程序中运行VLC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆