Truyen2U.Net quay lại rồi đây! Các bạn truy cập Truyen2U.Com. Mong các bạn tiếp tục ủng hộ truy cập tên miền mới 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: Truyen2U.Com

Tags: