重装DELPHI后,怎么还保留着上次的信息
重装DELPHI后,怎么还保留着上次装DELPHI时所设置的配置、文件等,该如何解决这个问题。求!!!急......
------解决方案--------------------TCode tCode;tCode.length = pDispatchMsg->getMsgLength(); new(tj8, char[tCode.length]);if (tj8 == NULL){
ERRORLOG("dispatchStraight(): NEW(char[]) memory fail!");return;} pDispatchMsg->encodeMsg(tj8);
RUNLOG("dispatchStraight(): dispatch msg to socket sendqueue, msgtype is " << j3.m_sMsgType << ", msg to node is "
<< j3.m_sMsgToNode << ", msg streamno is "<< j3.m_sMsgStreamNo);// 根据节点号的索引,找到节点对应的连接号
j5;// 根据连接号找到对应的连接实体switch (z1){case Server:{if (NULL != j2.m_pSocket) { j2.m_pSocket->sendStraight(tCode);
}else{ RUNLOG("dispatchStraight(): Connectindex[" << iConnectIndex + 1 << "] not build, discard this message.");
DELETE_A(tj8); } break;}case Client: {k4->sendStraight(tCode); break; }default:{ break; }}return;}
//TSocketComm功能函数.根据配置文件的改变修改TSocketComm中的连接
void TSocketComm::configRefresh(){//判断连接类型是否修改,如果修改,需要释放所有的资源
int z7 = 0; //连接是否需要重新建立if (z1 != y1) { z5;z6;z1 = y1; //修改连接类型 z7 = 1;}
int oldNrOfClient = 0;int minNrOfClient = m_iNrOfClient; //没有变化的节点数
switch (z1) {case Server:{ int i; if (j9 != y5) { j9 = y5; z5;z6; z7 = 1;} if (1 == z7) { z7 = 0;
y3{new(m_pSocketServer, TSocket);y3 { ERRORLOG("init(): New(m_pSocketServer) memory failed!");return; }}
m_pSocketServer->openServer(j9);}//如果节点有变化if (m_iNrOfClient != y7){oldNrOfClient = m_iNrOfClient;
m_iNrOfClient = y7;//如果节点减少了,需要清除多余节点 if (oldNrOfClient > m_iNrOfClient){
for (i = m_iNrOfClient; i < oldNrOfClient; i++) {y4.m_iIP = 0;y4.m_iPort = -1;y4.m_tState = NotLogin;
y4.m_sItemName[0] = '\0'; y4.m_sIPAddr[0] = '\0';if (NULL != y4.m_pSocket) delete(y4.m_pSocket)}
minNrOfClient = m_iNrOfClient;}else //如果节点多了,需要将节点信息添加{for (i = oldNrOfClient;
i < m_iNrOfClient; i++){y4.m_iIP = inet_addr(z8.m_sClientIP); strcpy(y4.m_sIPAddr,z8.m_sClientIP);
y4.m_iPort = z8.m_iClientPort;strcpy(y4.m_sItemName,z8.m_sClientName); } minNrOfClient = oldNrOfClient; } }