Exemplo n.º 1
0
        public ErrCode SendString(string strSend, UInt32 nUserFlag, string strFrom, string strTo)
        {
            ErrCode retCode = ErrCode.EC_OK;

            retCode = CShareDll.SendData(strSend, nUserFlag, strFrom, strTo, 1000);
            return(retCode);
        }
Exemplo n.º 2
0
        public virtual int DoRecive(string strData, UInt32 nUserFlag, string strForm, string strTo, Object objCallback)
        {
            int nRet = 0;

            XmlDocument xmlDoc = new XmlDocument();

            try
            {
                xmlDoc.LoadXml(strData);
            }
            catch (Exception e)
            {
                // 输出误信息,以便于调试
                string strMsg = e.ToString();
                System.Diagnostics.Debug.WriteLine(strMsg);
                string strRet = String.Format("<Return  strMsg=\"{0}\"/>", e.ToString());
                CShareDll.SendData(strRet, nUserFlag, strTo, strForm, 100);
                PostLog(strMsg);

                return(nRet);
            }
            nRet = DoRecive(xmlDoc.DocumentElement, strForm, objCallback);

            return(nRet);
        }