什么样的VB程序可以在其他电脑上不安装直接运行?

用VB6.0编写的小程序,未使用数据库,但使用了文件操作。在其他电脑上运行时,有的可以正常运行(在部分没有安装Visual studio的电脑上亦可正常运行);有的则出现各种各样的错误提示。

这些提示包括“Run-time error 339 a file is missing or invalid”等,copy了cmdlg32.ocx后仍无效。使用Package and Deployment Wizard做成安装包后,安装时仍有“setup cannot continue because some system files are out of date on your system . dick OK if you would like setup to update these files for you now . You will need to restart Windows before you can run setup again . Click cancel to exit setup without updating system files.
确定?取消?
Cannot update system file'C:\winnt\system32\stdole2.tlb'. You may not have permission to update system files on this machine.”的错误提示。

请问:什么样的VB程序可以在一个纯净的(默认选项安装的)Windows系统上直接运行?
或者说,如果使用了哪些控件、引用了哪些部件、进行了哪些操作后,就可能不能正常运行?

第1个回答  2008-04-03
不安装运行,两种……所谓的绿色软件,脚本编的程序
第2个回答  2008-04-02
做成安装程序,
用VB自带的打包工具就行。
第3个回答  2008-04-03
这样行不行,把所需dll放到程序目录下,在程序里这样:
regsvr32 app.path & "\文件名.dll "
第4个回答  2008-04-02
正常,不是程序的毛病,是因为VB这门语言本身的可移植性就很差.
第5个回答  2008-04-06
所有vb工具栏的控件(按钮、标签、文本框、复选框、单选按钮、框架、列表框、组合框、滚动条、定时器 )
相似回答
大家正在搜