|
Hi sir...
I am comparing dates which are in different format...
I want search the mails which are between the specified date and date..
Example
/////////////////////////////
Start Date = 03/28/2008 (mm/dd/yyyy)
End Date = 04/01/2008 (mm/dd/yyyy)
But the mail dates are in format ..
MailDate = 20080401 5:41:09 (yyyymmdd hhmmss).
//////////////////////////////////////////////
I want compare
if(mailDate <= firstDate && mailDate < secondDate)
{
printf("all the date between start date and end date");
}
else
{
printf("No mails found");
}
///////////////////////////////////////////////////
Sir how to compare this type of dates...
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Here's a great class, CFileSpec, that is easy to use and you can view code to learn. Hope this helps..
http://www.codeproject.com/KB/cpp/cfilespec.aspx
|
|
|
|
|
Hi
I have string of date format
Date = 2008/04/05..
I want to remove '/' character....
I want to specified string
Output
20080405
plz help me
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
|
You can use of CString::Find and then CString::Delete.
|
|
|
|
|
Please don't join such a question with such a sign.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Please don't join such a question with such a sign.
But she may have a superb reason why you're wrong. That went on your arrogant...
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Of course.
Now, I'm waiting for the superb reason.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
If you are using MFC, you could use CString::Remove()
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi,
i want to execute a exe in other's context so i tried the following code
HANDLE hUserToken;
LogonUser(_T("username"),_T("domain"), _T("password"), LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, &hUserToken);
STARTUPINFO startupInfo;
memset(&startupInfo, '\0', sizeof(startupInfo));
startupInfo.cb = sizeof(startupInfo);
startupInfo.dwFlags = STARTF_USESHOWWINDOW;
startupInfo.wShowWindow = SW_SHOW;
PROCESS_INFORMATION procInfo;
memset(&procInfo, '\0', sizeof(procInfo));
BOOL b = CreateProcessAsUser(hUserToken, fileName.c_str(),
NULL, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &startupInfo, &procInfo);
DWORD dw = GetLastError();
}
but i get the dw = 1314 saying "A required privilege is not held by the client."
If i right click the exe and choose the run as option giving user name and password it works fine. but how to execute that through code? Where i am going wrong?
|
|
|
|
|
|
Is it possible to draw behind the Desktop Icons on Vista (Animated)?
|
|
|
|
|
Do you want to draw like this or want animation drawing ?
HDC hDC = ::GetWindowDC(NULL);
::Ellipse(hDC, 0, 0, 200, 100);
ReleaseDC(NULL, hDC);
|
|
|
|
|
like this... but your Code would draw on Top of the Screen...
|
|
|
|
|
|
Here my Question Again: Is it possible to draw !BEHIND! the Desktop Icons on Vista (Animated)?
|
|
|
|
|
I would like to create a MFC project but when I create a project the option is greyed out. how can i use it?
Y*Live Long And Prosper*Y
|
|
|
|
|
Express edition is free and doesn't have MFC support. You will have to buy Visual Studio, if you want to develop applications using MFC.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Purchasing one of the other editions of Visual Studio .
BTW do you really need MFC ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: BTW do you really need MFC?
There you go - driving away another potential VS customer.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Well, I have to admit, I'm involved in Microsoft's Visual Studio Express campaign!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Another member of the boycot MFC policy [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
That's definitely your follower.
|
|
|
|
|
CPallini wrote: BTW do you really need MFC?
[Visual C++ 2008 Feature Pack Release^] updates MFC with cool look and feel feature like Office 2007, Office 2003 and Office XP look and feel. Its really going to rock.
|
|
|
|
|
Real men don't need those fancy things.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|