public static extern IntPtr CLIENT_StartUpgradeEx(IntPtr lLoginID, EM_UPGRADE_TYPE emType, string pchFileName, fUpgradeCallBack cbUpgrade, IntPtr dwUser);
Exemple #2
0
 private static extern Int32 CLIENT_StartUpgradeEx(Int32 lLoginID, EM_UPGRADE_TYPE emType, string pchFileName, fUpgradeCallBack cbUpgrade, UInt32 dwUser);
Exemple #3
0
        /// <summary>
        /// 画面加载处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frm_Main_Load(object sender, EventArgs e)
        {
            disConnect = new fDisConnect(DisConnectEvent);
            DHClient.DHInit(disConnect, IntPtr.Zero);//SDK初始化
            DHClient.DHSetEncoding(LANGUAGE_ENCODING.gb2312);//字符编码格式设置,默认为gb2312字符编码,如果为其他字符编码请设置
            grbMain.Enabled = false;

            hUpgradeId = 0;
            upgradeCallBack = new fUpgradeCallBack(UpgradeCallBack);

            this.updatePosDelegate = this.UpdatePos;

            StringUtil.InitControlText(this);
        }
Exemple #4
0
 /// <summary>
 /// Start the upgrade
 /// </summary>
 public static Int32 NETCLIENT_StartUpgradeEx(Int32 lLoginID, EM_UPGRADE_TYPE emType, string pchFileName, fUpgradeCallBack cbUpgrade, UInt32 dwUser)
 {
     Int32 nErr = CLIENT_StartUpgradeEx(lLoginID, emType, pchFileName, cbUpgrade, dwUser);
     Int32 errorCode = CLIENT_GetLastError();
     return nErr;
 }