狠狠色噜噜狠狠狠777米奇小说,精品久久久久精品亚洲av,丰满的少妇邻居中文bd,疯狂做受xxxx,中文天堂最新版在线www,国内精品综合久久久40p,亚洲另类欧美综合久久图片区,小荡货你夹的老师好紧
廣州高深商電子技術有限公司 用戶登錄
用戶注冊 ......
首頁 公告 收款機 抽獎機 來電管理 數據采集 臺球燈控 軟件開發 綜合 會員下載 發貨查詢
公司首頁
當前位置:首頁>> 來電管理>> 二次開發 >>正文
使用PB開發來電管理軟件
chen在2007/8/5發表,被瀏覽8725
適合對象:記得來電顯示管理器
開發環境:PowerBuilder
下載范例:JDDemoPB.rar
下載控件:MSCOMM.rar



注意:需要使用ActiveX控件MSCOMM32.OCX
方法:選擇“Insert”-〉“Control”-〉“OLE...”-〉“Insert Object”-〉“Insert Control”-〉“Microsoft Communications Control”


?Generated Application Objectforward
global type jddemo1 from application
string appname = "jddemo1"
string displayname = "來電顯示"
end type
global jddemo1 jddemo1

on jddemo1.create
appname="jddemo1"
message=create message
sqlca=create transaction
sqlda=create dynamicdescriptionarea
sqlsa=create dynamicstagingarea
error=create error
end on

on jddemo1.destroy
destroy(sqlca)
destroy(sqlda)
destroy(sqlsa)
destroy(error)
destroy(message)
end on

event open;Open(Form1)
end event


?forward
global type form1 from window
end type
type lb_1 from listbox within form1
end type
type ole_1 from olecustomcontrol within form1
end type
type cb_2 from commandbutton within form1
end type
type cb_1 from commandbutton within form1
end type
type ddlb_1 from dropdownlistbox within form1
end type
type st_1 from statictext within form1
end type
end forward

global type form1 from window
integer width = 1765
integer height = 960
boolean titlebar = true
string title = "來電顯示"
boolean controlmenu = true
boolean minbox = true
boolean maxbox = true
boolean resizable = true
long backcolor = 67108864
lb_1 lb_1
ole_1 ole_1
cb_2 cb_2
cb_1 cb_1
ddlb_1 ddlb_1
st_1 st_1
end type
global form1 form1

on form1.create
this.lb_1=create lb_1
this.ole_1=create ole_1
this.cb_2=create cb_2
this.cb_1=create cb_1
this.ddlb_1=create ddlb_1
this.st_1=create st_1
this.Control[]={this.lb_1,&
this.ole_1,&
this.cb_2,&
this.cb_1,&
this.ddlb_1,&
this.st_1}
end on


on form1.destroy
destroy(this.lb_1)
destroy(this.ole_1)
destroy(this.cb_2)
destroy(this.cb_1)
destroy(this.ddlb_1)
destroy(this.st_1)
end on

event open;lb_1.Reset()
end event
type lb_1 from listbox within form1
integer x = 59
integer y = 56
integer width = 1074
integer height = 728
integer taborder = 20
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
long textcolor = 33554432
boolean sorted = false
borderstyle borderstyle = stylelowered!
end type

type ole_1 from olecustomcontrol within form1
event oncomm ( )
integer x = 1303
integer y = 656
integer width = 174
integer height = 152
integer taborder = 40
borderstyle borderstyle = stylelowered!
boolean focusrectangle = false
string binarykey = "form1.win"
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
string facename = "Arial"
long textcolor = 33554432
end type

type cb_2 from commandbutton within form1
integer x = 1230
integer y = 508
integer width = 402
integer height = 112
integer taborder = 30
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
string text = "關閉"
end type

event clicked;//關閉端口。
ole_1.object.PortOpen = FALSE
lb_1.AddItem("已關閉連接")
end event

type cb_1 from commandbutton within form1
integer x = 1230
integer y = 344
integer width = 402
integer height = 112
integer taborder = 20
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
string text = "連接"
end type

event clicked;
String s
Integer k
Integer l
Integer i
Integer p
String ss

//使用COM1端口。
ole_1.object.CommPort = Integer(Right(ddlb_1.Text,1))
//設置速率為9600,無奇偶校驗,8 位數據,一個停止位。
ole_1.object.Settings = "9600,N,8,1"
//讀入整個緩沖區的數據。
ole_1.object.InputLen = 1
//打開端口
ole_1.object.PortOpen = True
lb_1.Reset()
lb_1.AddItem("已連接,正在監聽...")
//等待數據。
Do while True
Do
Yield()
//從Com端口取數據
if not ole_1.object.portopen then Return
s += ole_1.object.Input
LOOP Until(Pos(s, char(85) + char(85) + char(85) + char(85) + char(85) + char(85)) > 0) //Hex=55
Do
Yield()
      s = ole_1.object.Input
Loop Until s <> ""
K = Asc(s)
   Do
Yield()
      s = ole_1.object.Input
   Loop Until s <> ""
   l = Asc(s)
        
   i = 0
   ss = ""
   Do
Yield()
      s = ole_1.object.Input
      If s <> "" Then
       ss = ss + s
         i = i + 1
      End If
   Loop Until i >= l
   //復合數據格式
   If k = 128 Then //Hex=80
     p = Pos(ss, Char(1))
      if p > 0 Then
       l = Asc(Mid(ss, p + 1, 1))
         lb_1.AddItem("來電時間: " + Mid(ss, p + 2, l))
      End If
      p = Pos(ss, Char(2))
      If p > 0 Then
         l = Asc(Mid(ss, p + 1, 1))
         lb_1.AddItem("來電號碼: " + Mid(ss, p + 2, l))
      End If
End If
   // 單數據格式
   If k = 4 Then
     lb_1.AddItem("來電時間: " + Mid(ss, 1, 8))
      lb_1.AddItem("來電號碼: " + Mid(ss, 9, l - 8))
   End If
   ss = ""
Loop

end event

type ddlb_1 from dropdownlistbox within form1
integer x = 1216
integer y = 160
integer height = 400
integer taborder = 10
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
long textcolor = 33554432
string text = "COM1"
boolean allowedit = true
string item[] = {"COM1","COM2","COM3","COM4"}
borderstyle borderstyle = stylelowered!
end type

type st_1 from statictext within form1
integer x = 1225
integer y = 56
integer width = 402
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Arial"
long textcolor = 33554432
long backcolor = 67108864
string text = "連接端口"
boolean focusrectangle = false
end type
【相關文章】
使用PB開發來電管理軟件
【同類文章】
高深商GSM無線固話盒OC…
WIFI接口來電顯示管理器…
新一代USB轉COM口來電…
來電管理器故障排除的方法
在WIN7或Win8中注冊…
計算機收發短信的OCX控件…
使用Java開發來電顯示管…
開發來電顯示及錄音程序的C…
C#來電顯示管理器開發示例…
使用C#的Socket開發…

廣州高深商電子技術有限公司

地址:天河北路908號、高科大廈B座2704
電話:020-38259081、38258857
電子郵箱:gaoykosen@foxmail.com

主站蜘蛛池模板: 国产精品成人av片免费看| 日本毛茸茸的丰满熟妇| 国产乱理伦片在线观看| 国产精品一区二区av不卡| 亚洲乱码国产乱码精品精| 国产精品未满十八禁止观看| 欧美多人片高潮野外做片黑人| 伊人久久大香线蕉无码| 日本一区二区三区不卡免费| 国产xxxx99真实实拍| 人善交oooooo另类毛片| 国产欧美日韩综合精品二区| 好大好硬好爽免费视频| 97影院午夜在线影| 三年片在线观看免费大全电影 | 久久丫精品国产亚洲av不卡| 日本丰满的人妻hd高清在线| 天天做天天爱夜夜爽毛片l| 亚洲综合欧美色五月俺也去| 亚洲精品天堂成人片av在线播放| 调教女m屁股撅虐调教| 亚洲中文字幕无码一区在线| 成全视频大全高清全集| 黑人好猛厉害爽受不了好大撑| 三年片在线观看免费动漫| 亚洲欧美日韩中文高清www777| 国产欧美亚洲精品第一页| 办公室扒开奶罩揉吮奶头视频| 免费观看日本污污ww网站| 久久露脸国产精品| 人妻有码中文字幕| 欧洲mv日韩mv国产| 高压监狱高清在线观看电影免费版 | 夜夜躁狠狠躁日日躁麻豆护士| 国产精品igao视频网| 日本不卡在线视频二区三区 | 精品综合—国产精品综合高清| 国产三级在线观看播放视频| 国产成人综合久久亚洲精品| gogogo高清在线播放免费观看免费| 两个人的视频www|