Chào các bạn! Truyen4U chính thức đã quay trở lại rồi đây!^^. Mong các bạn tiếp tục ủng hộ truy cập tên miền Truyen4U.Com này nhé! Mãi yêu... ♥

CTI_dx_open_close

dx_open( )

dx_open(namep, oflags)

Chuc nang: Mo 1 thiet bi thoai

namep: con tro tro den 1 chuoi ASCII la ten thiet bi dialogic hop le

oflags: Mo rong trong tuong lai, dat la NULL

#include <srllib.h>

#include <dxxxlib.h>

#include <windows.h>

main( )

{

int chdev; /* mo ta kenh */

/* Open Channel */

if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {

/* process error */

}

}

**************

dx_close( )

Dong thiet bi hoac kenh da mo truoc do cho du thiet bi dang roi hay ban

dev: thiet bi dialogic phu hop da duoc mo truoc do

#include <srllib.h>

#include <dxxxlib.h>

#include <windows.h>

main( )

{

int chdev; /* mo ta kenh */

/* Open Channel */

if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {

/* process error */

}

/* close Channel */

if ((chdev = dx_close == -1) {

/* process error */

}

Bạn đang đọc truyện trên: Truyen4U.Com

Tags: