怀疑我的VB项目 [英] doubt in my VB Project

查看:60
本文介绍了怀疑我的VB项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VB6中开发项目。它应该在Windows XP中运行,它不应该在Windows7和Windows中运行。 8(所有操作系统只有32位)

请帮助我解决这个问题......

谢谢.. ...

推荐答案

我还有我在XP上用VB 6开发的项目。他们仍然在XP上运行。它们无法在Vista,Windows 7/8上正确安装。问题是vb使用的Dll(依赖项)。当微软

进入Vista时,他们支持但是并没有发送许多你的程序可能需要或发送但仍不支持的依赖项。

我发现我必须创建一个批处理文件来取消注册一些dll'然后再次注册它们以便在Windows中识别它们 - >程序文件文件夹,因为UAC。

这样做了几次之后,我意识到我可以简单地创建一个安装包并将我的程序安装到Common Files文件夹。然后我不再需要批处理文件了。



所以你需要做的是确保你的代码没问题(比如Vista上的发送密钥不起作用)它在XP上的方式)然后重新编译你的程序并为Common Files文件夹创建一个安装文件夹。期待一些文件最终出现在兼容性文件夹中,比如ini或.mdb文件。
I also had projects I developed in VB 6 on XP. They still run on XP. They do not install correctly on Vista, Windows 7/8. The problem is the Dll''s ( dependencies) that vb uses. When Microsoft
went to Vista, they supported but didn''t ship many of those dependencies that your program might require or Shipped but didn''t support.
I found I had to create a batch file to unregister some dll''s then register them again for them to be recognized in the Windows -> program files folder because of the UAC.
After doing that a few times I realized I could just simply create an installation package and install my program to the Common Files Folder. Then I no longer needed the batch file.

So what you need to do is to make sure your code is ok ( like Send Keys on Vista doesn''t work the way it did on XP) and then recompile your program and create an installation folder for the Common Files Folder. Expect some files to end up in the compatibility folder, like the ini or .mdb files.


请给出一些输入。跑步时会出现什么错误?或者你在运行应用程序时遇到的实际问题是什么。
please give some input. what is error is coming while running? or what is the actual problem you had while running your app.


这篇关于怀疑我的VB项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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