Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: manifest file Pin
Nibu babu thomas2-Jul-08 21:49
Nibu babu thomas2-Jul-08 21:49 
QuestionProblem with CopyFileW Pin
stanlymt2-Jul-08 1:21
stanlymt2-Jul-08 1:21 
AnswerRe: Problem with CopyFileW Pin
KarstenK2-Jul-08 3:13
mveKarstenK2-Jul-08 3:13 
GeneralRe: Problem with CopyFileW Pin
stanlymt2-Jul-08 20:00
stanlymt2-Jul-08 20:00 
QuestionRe: Problem with CopyFileW Pin
David Crow2-Jul-08 4:50
David Crow2-Jul-08 4:50 
AnswerRe: Problem with CopyFileW Pin
stanlymt2-Jul-08 20:02
stanlymt2-Jul-08 20:02 
QuestionDirectX 9 and Task Manager. Pin
Member 38254932-Jul-08 0:19
Member 38254932-Jul-08 0:19 
QuestionCompare two xml File Pin
manju#1231-Jul-08 23:33
manju#1231-Jul-08 23:33 
Hi all..
First I am crawling the mail information and writing to output XML File...
It creates ADD Tag and under ADD tag the crawled information comes...

But Second time if i crawl i want to maintain History File...Suppose if any Mails deleted in Mailbox...

That deleted mails i must check or compare with first XML file if not found..
I Should write only that mails in History File..I am not getting how to do it...

Can anyone help me please..

I am just sending the code where i am just putting the code...
I dnt want any code..Just any help..where i can move...
Thanking you

manju
//////////////////////////
struct loginInfo<br />
{<br />
	CAclsApi *TestApi ;<br />
	_TCHAR *sUserName;<br />
	_TCHAR *sPassWord;<br />
	_TCHAR *sServerName;<br />
	_TCHAR *sTagStyle;<br />
	long sMaxCrawl;<br />
	const _TCHAR *sStDate;<br />
	const _TCHAR *sEndDate;<br />
	 _TCHAR *sFileExt;<br />
	_TCHAR *OutPut;<br />
	_TCHAR *sMailDate;<br />
	_TCHAR *sDuration;<br />
	bool *cMailHasAttachment;<br />
	_TCHAR *cAttachFileNames;<br />
	bool bThreadRunning;<br />
	bool bServerConnected;<br />
	bool BServerConnected() const { return bServerConnected; }<br />
	void BServerConnected(bool val) { bServerConnected = val; }<br />
	bool btimeOut;<br />
	_TCHAR thstrAclInfo[1024];<br />
	ACL_STATUS status;<br />
	ACL_STRUCT_INFO *ACL_INFO;<br />
	ACL_STRUCT_MBUSERS_MAIL *ACL_STMAIL;	<br />
	ACL_STRUCT_MBUSERS *ACL_MBUSERS;<br />
	ACL_STRUCT_MBUSERS_MAIL_ATTCH *ACL_MAIL_ATTACH;<br />
<br />
};<br />
unsigned int __stdcall ConnectToServer(void *dummy)<br />
{<br />
	loginInfo *linfo = (loginInfo*)dummy; <br />
	linfo->ACL_INFO=new ACL_STRUCT_INFO;<br />
	linfo->ACL_STMAIL=new ACL_STRUCT_MBUSERS_MAIL[MAX_MAIL_COUNT];<br />
	linfo->ACL_MBUSERS=new ACL_STRUCT_MBUSERS[MAX_MAILBOX_COUNT];<br />
<br />
<br />
 for(int y=0; y<(linfo->ACL_STMAIL[0].iMBUserMailCount); y++)       <br />
 {				<br />
								<br />
	_tprintf("\nMails found between %s date and %s date\n",linfo->sStDate,linfo->sEndDate);	<br />
     for(int i = 0;i < (linfo->ACL_STMAIL[y].iMBUserMailAttachFileCount); i++)    <br />
     {<br />
                                          <br />
		elementName [0] = "NAME";<br />
		elementValue[0] = linfo->ACL_STMAIL[y].cMBUserMailFromName;<br />
		elementName [1] = "EMAIl";<br />
		elementValue[1] = linfo->ACL_STMAIL[y].cMBUserMailFromEmail;<br />
		elementName [2] = "DATE";<br />
		elementValue[2] = mailDatee;<br />
		elementName [3] = "TITLE";<br />
		elementValue[3] = linfo->ACL_STMAIL[y].cMBUserMailSubject;<br />
		elementName [4] = "BODY";<br />
		elementValue[4] = linfo->ACL_STMAIL[y].cMBUserMailTextDesc;<br />
		elementName [5] = "URL";<br />
		elementValue[5] = MailPath;<br />
		elementName [6] = "ATTACHMENT";<br />
		elementValue[6] = strAttachFilePath[i];<br />
		elementName [7] = "TYPE";<br />
		elementValue[7] = nExtension[i];<br />
		elementName [8] = "SIZE";<br />
		elementValue[8] = strMailAttachSize;<br />
		elementName [9] = "ACL";<br />
		elementValue[9] = strACL;<br />
		elementName [10] = "NOACL";<br />
		elementValue[10] = strNoACL;			<br />
<br />
<br />
		CSingleLock singleLock(&LockListFile);<br />
		singleLock.Lock();   <br />
		if (singleLock.IsLocked())                          <br />
		{	<br />
			<br />
			bsgw_status = BSGW_WriteRequest(listFile,BSGW_REQUEST_TYPE_ADD,11,elementName,elementValue);<br />
			if(bsgw_status == BSGW_STATUS_SUCCESS)           <br />
			{<br />
				IS_Trace( IS_COMP_EXC, FuncName, "bsgw_status=[%d]",BSGW_STATUS_SUCCESS) ;<br />
				_tprintf("\nWritten to list file successfully\n");<br />
<br />
			}<br />
			else if(bsgw_status != BSGW_STATUS_SUCCESS)        <br />
			{<br />
<br />
				_tcscpy_s( errcode, "TSE_0017" ) ;<br />
				IS_MgrLog( IS_OUTPUT_ERR, IS_COMP_EXC, errcode, "Error writing XML", ERRbuff );<br />
				_tprintf("\nError writing XML : %d\n", bsgw_status);<br />
				return 0;<br />
			}<br />
			singleLock.Unlock();<br />
		}<br />
}<br />
}<br />
}		
//////////////////////

Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju

QuestionNTservice Pin
tns_ranjith1-Jul-08 23:31
tns_ranjith1-Jul-08 23:31 
AnswerRe: NTservice Pin
Naveen1-Jul-08 23:44
Naveen1-Jul-08 23:44 
AnswerRe: NTservice Pin
JudyL_MD2-Jul-08 3:04
JudyL_MD2-Jul-08 3:04 
QuestionHow to get a reference to the Doc in the Mainframe Pin
ilgale1-Jul-08 23:20
ilgale1-Jul-08 23:20 
AnswerRe: How to get a reference to the Doc in the Mainframe Pin
CPallini1-Jul-08 23:36
mveCPallini1-Jul-08 23:36 
AnswerRe: How to get a reference to the Doc in the Mainframe Pin
Nelek3-Jul-08 22:05
protectorNelek3-Jul-08 22:05 
QuestionReport Creation in VC++ 2005. Pin
Le@rner1-Jul-08 23:20
Le@rner1-Jul-08 23:20 
QuestionMouse Move or click Event on Internet Explorer Pin
Dabara1-Jul-08 22:52
Dabara1-Jul-08 22:52 
AnswerRe: Mouse Move or click Event on Internet Explorer Pin
KarstenK1-Jul-08 23:21
mveKarstenK1-Jul-08 23:21 
GeneralRe: Mouse Move or click Event on Internet Explorer Pin
Dabara2-Jul-08 0:02
Dabara2-Jul-08 0:02 
GeneralRe: Mouse Move or click Event on Internet Explorer Pin
KarstenK2-Jul-08 22:17
mveKarstenK2-Jul-08 22:17 
QuestionRe: Mouse Move or click Event on Internet Explorer Pin
Dabara7-Jul-08 20:21
Dabara7-Jul-08 20:21 
Questionencoder question about GDI+ Pin
followait1-Jul-08 22:48
followait1-Jul-08 22:48 
AnswerRe: encoder question about GDI+ Pin
SandipG 2-Jul-08 0:48
SandipG 2-Jul-08 0:48 
QuestionUse Windows command bar icon (FaceID) on dialog? Pin
J.B.1-Jul-08 22:36
J.B.1-Jul-08 22:36 
QuestionRe: Use Windows command bar icon (FaceID) on dialog? Pin
David Crow2-Jul-08 5:18
David Crow2-Jul-08 5:18 
AnswerRe: Use Windows command bar icon (FaceID) on dialog? Pin
J.B.2-Jul-08 20:40
J.B.2-Jul-08 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.