设置和部署 [英] Set up anddeployment

查看:55
本文介绍了设置和部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我已经在vb6中创建了一个项目,并在vb6中使用ado代码访问了2007.
我已经在vb6中创建了安装和部署,但是在没有vb6的目标计算机上安装了安装程序之后.安装程序安装成功.但是当我打开程序时显示数据库错误(找不到路径).
请帮助我提供详细信息.我还应该在vb6或其他程序中使用设置和部署.
谢谢.

Hello
I have created a project in vb6 and access 2007 using ado code in vb6.
I have created a setup and deployment in vb6 but after installing setup on target computer with no vb6. The setup installs csuccessfully. But when i open the program displays database error (path not found).
Please help me with complte details. Also should i use setup and deployment in vb6 or some other program.
Thank you.

推荐答案

错误找不到路径"是指您的访问数据库位置.如果是这种情况,请检查您的程序是否指向正确的位置,并最好在配置文件中定义该位置.

旁注:如果这是一个新程序,请考虑使用VB.NET而不是长期不支持的VB6 ...
Is the error "Path not found" referring to your access database location. If that''s the case, check that your program is referring to correct location and preferably define the location in a configuration file.

Side-note: If this is a new program consider using VB.NET instead of VB6 which hasn''t been supported for a long time...


我认为您遇到了此错误找不到路径(错误76) [ App.Path [ ^ ]
因此,您的连接字符串将如下所示.
I think you got this error Path not found (Error 76)[^]

I think you have used hard-code path(Ex. F:\Database\db.mdb). If your target machine doesn''t contain the F drive then it''ll show the above error message.

My suggestion is use App.Path[^]
So your connection-string will be like as below.
Dim strCon as string
strCon = App.Path & "\running2009.mdb"


这篇关于设置和部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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