求助,一个你可能遇到过的问题,希望帮忙!!

zzz1975 2003-03-24 04:30:05
问个奇怪的问题,我得程序在pb下没问题,正常运行,并且连接数据库正常,
可是编译成可执行文件是,出现link error 窗口,奇怪的是没有什么错误提示
生成的执行该文件,告诉数据库连接失败,
看看配置没什么问题,数据库也没问题,

不知道如何解决,想大家求助!
...全文
57 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzz1975 2003-03-24
  • 打赏
  • 举报
回复
谢谢shahand(有志青年) 解决问题
zzz1975 2003-03-24
  • 打赏
  • 举报
回复
数据源没有什么问题

文件路径也应该是没么问题。。。。

急人!!
shahand 2003-03-24
  • 打赏
  • 举报
回复
sorry刚才准备回复的时候吊线了

当时删除了全部已经编译的pbd,再重新建的project就好了,出现过几次,都是这样解决的
我的是6.5

我又帮你搜索了一下

Problem: My application runs fine in development but I get a blank "Link Errors" messagebox while trying to generate an executable. What is causing this problem?

Resolution: It could be a number of things. Consider the components that are only referenced during the creation of the executable in the project painter. Some likely causes:


Application .ico file. The only time this file is checked for validity is during exe creation. Make sure it's a valid .ico file and not a renamed .bmp file. If you can open this file up directly in Win95 Paint, it's not a valid Icon.
PBTYP050.DLL is in a writable directory for the first exe compile (machine code or interpreted p-code). The compilation process tries to "regenerate" this DLL but only during the FIRST exe creation. This is a good suspect if PowerBuilder was recently installed on a network. ( PowerBuilder 6.0 and 7.0 do not have this requirement since PBTYP##.DLL isn't part of the environment.)
weiqihp 2003-03-24
  • 打赏
  • 举报
回复
检查一下数据源有没有问题?
唏嘘的猪肉贩 2003-03-24
  • 打赏
  • 举报
回复
可能是配置文件的路径问题
比如你运行的是桌面上的快捷方式,而快捷方式种没有指定骑士位置。
shahand 2003-03-24
  • 打赏
  • 举报
回复
遇到过
zzz1975 2003-03-24
  • 打赏
  • 举报
回复
Jonea(魔鬼) ,还有楼上
我用了7个pb*.dll 其它都是用这几个可以运行
libjcc.dll,pbdwe70.dll,pbin70.dll,pbo7370.dll
pbodb70.dlll,pbsyc70.dll,pbvm70.dll
您们告诉我为什么吗??真窝囊!!
hai_yu2000 2003-03-24
  • 打赏
  • 举报
回复
少了连接的dll文件
zzz1975 2003-03-24
  • 打赏
  • 举报
回复
没有人解决?/碰到过

我的意思是,编写的程序在pb环境中可以正常的工作
可是编译成可执行文件,告诉数据库连接失败,这是在编译*.exe
出现“link error”造成的,希望高手告诉我,等待中
动态的数据库语句如下:
SQLCA.DBMS = ProfileString("materialmanage.ini","database","DBMS","")
SQLCA.Database = ProfileString("materialmanage.ini","database","Database","")
SQLCA.LogId = ProfileString("materialmanage.ini","database","LogId","")
SQLCA.LogPass = ProfileString("materialmanage.ini","database","LogPassword","")
SQLCA.ServerName = ProfileString("materialmanage.ini","database","ServerName","")
SQLCA.AutoCommit = false
SQLCA.DBParm = ProfileString("materialmanage.ini","database","DBParm","")
connect;
if SQLCA.SQLcode<>0 then
messagebox("提示","数据库连接失败!"+sqlca.sqlerrtext)
return
end if

就是分析原因,另外给分,着急等待中。。。在线!!
Jonea 2003-03-24
  • 打赏
  • 举报
回复
少数据库连接文件吧
phitibo 2003-03-24
  • 打赏
  • 举报
回复
找你的语名拿来看看便知要不如何能解不过我在想你可能是没有用动态调用数据库的语句吧!

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧