PowerBuilder
文章平均质量分 54
asangel
wheres your heart,wheres wealth.
展开
-
C#创建COM供PB调用
PB9(包括 PB9)以前的版本都不能访问VS.Net创建的基于Net FrameWork下的程序,除非将程序编译成COM,PB才能正常调用。 以下是我总结出的C#将类库编译成COM所需要的步骤:1.创建一个类库程序;2.在程序里添加using System.Runtime.InteropServices;3.创建一个公用的函数,以供PB调用;4.启动命令窗口;5.生成snk文件:转载 2008-12-04 11:29:00 · 616 阅读 · 0 评论 -
在PowerBuilder中播放声音
1、声明外部函数: //send SoundFunction Boolean sndPlaySoundA(string wavfile, uint Flags) Library "winmm.dll" Function UInt waveOutGetNumDevs() Library "winmm.dll"2、播放WAV声音文件: uint lui_numdevsstring ls_fil原创 2008-12-08 09:31:00 · 1331 阅读 · 0 评论 -
PowerBuilder中1个Application建立多个PBL
step 1: 右键点击应用,选择propertiesstep 2: 出现弹出窗口,点击New...step 3: 出现新建文件对话框,输入文件名,保存。原创 2008-12-05 15:23:00 · 1349 阅读 · 0 评论 -
如何在PB的程序中注册用到的OCX控件
如果在程序中使用了OCX控件,在开发阶段,可以使用Windows的程序来注册这个控件,如:regsvr32 ccrpftv6.ocxregsvr32 filevw61.ocx如果取消注册的话:regsvr32 /u ccrpftv6.ocxregsvr32 /u filevw61.ocx但是,如果程序写好了,要将其发布出去,不可能让用户自己去运行这个命令,那么怎么办呢?办法有很多,其中之一是在转载 2008-12-09 14:57:00 · 1256 阅读 · 0 评论 -
PowerBuilder打印QRCode
step 1: 注册ocx插件 regsvr32 QRMAKER.OCXstep 2 : 新建datawindow, 在datawindow 上面布置 OLE 控件.选择insert control里面的QR Code. 注:在pb中注册ocx插件step 1: 声明local external function//regeste原创 2008-12-08 15:09:00 · 5591 阅读 · 1 评论