如何将PB程序嵌入另一个程序

belsai 2014-03-05 05:13:14
有两套软件A和B,A是其它语言开发的,B是PB开发的,需要将B程序分解成若干不同的功能模块,由A程序进行调用,两套软件同时访问同一个后台SQL数据库,如何由A程序中调用B程序中不同的功能模块?哪位朋友能给一个具体的思路!
...全文
498 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
belsai 2014-03-11
  • 打赏
  • 举报
回复
没找到解决办法,只能重装系统,很痛苦的说
belsai 2014-03-06
  • 打赏
  • 举报
回复
pb 9.0.3 8836 + WIN7 64位
belsai 2014-03-06
  • 打赏
  • 举报
回复
引用 1 楼 lzp_lrp 的回复:
给你几种方案: 1.采用调用exe 加参数的方案,根据传入的参数,打开B里不同的功能 2.采用COM技术来实现,可以由别的程序直接调用 3.采用PBNI来实现
考虑用COM来实现了,不知道PB9在WIN7下生成COM是否有问题,总是不成功 以下是log CGEN: Compiling 'd:\工作\参考程序\测试程序\_tmpguid.cpp' cannot open file '工作\参考程序\测试程序\_tmpguid.err' for write access CGEN: Compiling 'd:\工作\参考程序\测试程序\_tmpclas.cpp' cannot open file '工作\参考程序\测试程序\_tmpclas.err' for write access d:\工作\参考程序\测试程序\_tmpclas.cpp(27) unable to open '_tmpclas.h' d:\工作\参考程序\测试程序\_tmpclas.cpp(33) unable to open '_tmputil.h' d:\工作\参考程序\测试程序\_tmpclas.cpp(36) 'class COClass_n_genapp2' has not been declared d:\工作\参考程序\测试程序\_tmpclas.cpp(36) syntax error before 'BOOL'; probable cause: incorrectly spelled type name CGEN: Compiling ' d:\工作\参考程序\测试程序\_tmpserv.cpp' cannot open file '工作\参考程序\测试程序\_tmpserv.err' for write access d:\工作\参考程序\测试程序\_tmpserv.cpp(23) unable to open '_tmpclas.h' d:\工作\参考程序\测试程序\_tmpserv.cpp(25) unable to open '_tmpserv.h' d:\工作\参考程序\测试程序\_tmpserv.cpp(28) declaration specifiers are required to declare 'LONG' d:\工作\参考程序\测试程序\_tmpserv.cpp(28) syntax error before 'g_cLocks'; probable cause: incorrectly spelled type name d:\工作\参考程序\测试程序\_tmpserv.cpp(29) declaration specifiers are required to declare 'HINSTANCE' d:\工作\参考程序\测试程序\_tmpserv.cpp(29) syntax error before 'g_hModule'; probable cause: incorrectly spelled type name d:\工作\参考程序\测试程序\_tmpserv.cpp(30) declaration specifiers are required to declare 'PBCHAR' d:\工作\参考程序\测试程序\_tmpserv.cpp(30) syntax error before 'g_szServerFullName'; probable cause: incorrectly spelled type name d:\工作\参考程序\测试程序\_tmpserv.cpp(33) declaration specifiers are required to declare 'PBCHAR' d:\工作\参考程序\测试程序\_tmpserv.cpp(33) syntax error d:\工作\参考程序\测试程序\_tmpserv.cpp(36) declaration specifiers are required to declare 'PBCOM_OBJECTDATA' d:\工作\参考程序\测试程序\_tmpserv.cpp(36) syntax error before 'g_PBCOMObjectData'; probable cause: incorrectly spelled type name d:\工作\参考程序\测试程序\_tmpserv.cpp(56) declaration specifiers are required to declare 'PBCOM_SERVERDATA' d:\工作\参考程序\测试程序\_tmpserv.cpp(56) syntax error before 'g_PBCOMServerData'; probable cause: incorrectly spelled type name d:\工作\参考程序\测试程序\_tmpserv.cpp(77) symbol 'g_cLocks' has not been declared d:\工作\参考程序\测试程序\_tmpserv.cpp(83) symbol 'g_cLocks' has not been declared d:\工作\参考程序\测试程序\_tmpserv.cpp(87) syntax error; probable cause: missing ';'
WorldMobile 2014-03-06
  • 打赏
  • 举报
回复
给你几种方案: 1.采用调用exe 加参数的方案,根据传入的参数,打开B里不同的功能 2.采用COM技术来实现,可以由别的程序直接调用 3.采用PBNI来实现

794

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 项目管理
社区管理员
  • 项目管理
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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