• 大小: 6.33MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-30
  • 语言: C#
  • 标签: C#  

资源简介

《C#开发实战宝典》(清华大学出版社.王小科等)一书配套光盘中赠送的3个案例及相应的电子文档,很有实战参考价值(原书特别提示:本案例仅供学习,严禁用于商业应用)。

资源截图

代码片段和文件信息

using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace Daila
{
    class D160A
    {


        //初始化函数;
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern long LoadDRV();
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void FreeDRV();
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern long EnableCard(short wusedCh short wFileBufLen);
  
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern short CheckValidCh();
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern short CheckChType(short wChnlNo);
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern short CheckChTypeNew(short wChnlNo);
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern bool IsSupportCallerID();
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern void SetPackrate(short wPackRate);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void PUSH_PLAY();
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void SetBusyPara(short BusyLen);
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern void SetDialPara(short RingBack short RingBack0 short BusyLen short RingTimes);
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern long NewReadPass(short wCardNo);
        //[DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        //public static extern void D_SetWorkMode(short wChnlNo byte cbWorkMode byte cbModeVal);

        //振铃及摘挂机函数;
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern bool RingDetect(short wChnlNo);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void OffHook(short wChnlNo);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void HangUp(short wChnlNo);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern long ElapseTime(int wChn int ClockType);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void StartPlaySignal(short wChn int ClockType);
         [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void FeedRealRing(int ChannelNo);
            [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void StartHangUpDetect(short ChannelNo);
        [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern int HangUpDetect(short ChannelNo);
         [DllImport(“Tc08a32.dll“ CharSet = CharSet.Auto)]
        public static extern void FeedPower(short ChannelNo);
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .CA....    278528  2007-12-10 15:07  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\bin\Debug\Daila.exe

    .CA....    249344  2007-12-10 15:07  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\bin\Debug\Daila.pdb

    .CA....      5632  2005-11-11 22:25  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\bin\Debug\Daila.vshost.exe

    .CA....      7730  2007-11-23 16:27  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\D160A.cs

    .CA....      7962  2007-12-06 11:17  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\Daila.csproj

    .CA....   3772416  2007-12-30 09:40  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\Database\db_Dainla.mdb

    .CA....      7328  2007-11-17 09:04  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\Form4.Designer.cs

    .CA....      7618  2007-12-06 11:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomer.cs

    .CA....      8920  2007-12-06 11:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomer.Designer.cs

    .CA....      6734  2007-12-06 11:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomer.resx

    .CA....      9705  2007-11-27 16:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomerUpdate.cs

    .CA....     21773  2007-11-27 16:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomerUpdate.Designer.cs

    .CA....     10060  2007-11-27 16:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmCustomerUpdate.resx

    .CA....      1364  2007-11-28 12:59  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmDai.cs

    .CA....      4791  2007-11-28 12:59  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmDai.Designer.cs

    .CA....      5814  2007-11-28 12:59  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmDai.resx

    .CA....     12096  2007-11-28 13:12  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmEmployeeInfo.cs

    .CA....     24676  2007-11-27 16:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmEmployeeInfo.Designer.cs

    .CA....     10059  2007-11-27 16:23  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmEmployeeInfo.resx

    .CA....     43601  2007-12-10 15:06  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmMain.cs

    .CA....     23185  2007-12-10 09:02  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmMain.Designer.cs

    .CA....     11834  2007-12-10 09:02  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmMain.resx

    .CA....      2035  2007-11-28 13:19  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmProd.cs

    .CA....      4523  2007-11-26 13:11  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmProd.Designer.cs

    .CA....      9886  2007-11-26 13:11  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmProd.resx

    .CA....      4115  2007-11-27 14:01  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmtbProduction.cs

    .CA....     12715  2007-11-26 14:20  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmtbProduction.Designer.cs

    .CA....      5814  2007-11-26 14:20  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmtbProduction.resx

    .CA....      2313  2007-11-27 14:25  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmtbProPath.cs

    .CA....      4670  2007-11-27 13:52  C#开发实战宝典.(配书案例及电子文档)\案例源程序\03\Daila\Daila\frmtbProPath.Designer.cs

............此处省略300个文件信息

评论

共有 条评论