|
Hi..
I tried it before only..its not working..
////////////////////////////////////////
_TCHAR *csDuration;
int cDuration;
cDuration = _ttoi(csDuration);
////////////////////////////////
Its not working
thank you
sharan
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: I tried it before only..its not working..
Is this supposed to be your version of descriptive?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi..
I did not got u...
sharan
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: I did not got u...
Nor I you.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Is this supposed to be your version of descriptive?
You would understand if you read the post in UTC time[^]
led mike
|
|
|
|
|
I don't follow, Mike. What does that have to do with atoi() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: What does that have to do with atoi()?
Nothing Dave, I thought you would get a laugh out of it, guess I was wrong.
led mike
|
|
|
|
|
sharanu wrote: _TCHAR *csDuration;
int cDuration;
cDuration = _ttoi(csDuration);
If you initialize csDuration with some acceptable string, such as _T("24") , for instance, then, maybe, it would work.
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
|
|
|
|
|
Hi...
I have two dates..
1)First I am getting from mail i.e in the format mm/dd/yyyy hh:mm:ss (example 4/2/2008 2:56:50 pm)
2)Second I am passing the parameter i.e in the format dd/mm/yyyy.
(example 2/4/2008)
Now i want to compare the two dates which is greater in it...
I am not getting which class to use...
plz help me..
thank you...in advance
sharan
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
With COleDateTime, you have to use the ParseDateTime method, specifying correctly the lcid parameter.
For instance (I assume your date formats are compatible, respectively with US and Italian lcid s, I don't know if it is correct)
COleDateTime firstDate, secondDate;
firstDate.ParseDateTime(_T("4/2/2008 2:56:50 pm"), 0, MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT));
secondDate.ParseDateTime(_T("2/4/2008"), 0, MAKELCID(MAKELANGID(LANG_ITALIAN, SUBLANG_ITALIAN),SORT_DEFAULT));
if ( firstDate > secondDate)
{
}
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
|
|
|
|
|
Hi..
Actually i have 3 dates..
1) ST_DATE
2) END_DATE
3) MailDate
ST_DATE and END_DATE i read from config file i.e in the format mm/dd/yyyy..
Example
ST_DATE=4/1/2008.
END_DATE=4/2/2008.
MailDate i read from mails....i.e in the format mm/dd/yyyy hh:mm:ss pm
Example
MailDate= 4/2/2008 2:56:50 pm...
Now i want to display the mails which come from ST_DATE and END_DATE..
I need to check
if(maildate >= ST_DATE) && (mailDate <= END_DATE)....
I think you got me....
thank you
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
And what is the problem (I mean your sign asserts you're experienced)?
for instance
COleDateTime startDate, endDate, mailDate;
DWORD lcidUS = MAKELCID( MAKELANGID( LANG_ENGLISH,SUBLANG_ENGLISH_US), SORT_DEFAULT);
DWORD lcidIt = MAKELCID( MAKELANGID( LANG_ITALIAN, SUBLANG_ITALIAN), SORT_DEFAULT);
startDate.ParseDateTime(_T("1/4/2008"), 0, lcidIt);
endDate.ParseDateTime(_T("2/4/2008"), 0, lcidIt);
mailDate.ParseDateTime(_T("4/2/2008 2:56:50 pm"), 0, lcidUS);
if ( mailDate >= startDate && mailDate < endDate)
{
}
else
{
}
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
|
|
|
|
|
Hi...
Its not comparing properly....
I have the mails of date 4/2/2008.....
when i give the ST_DATE=4/1/2008.
END_DATE=4/2/2008.
It is showing the message no mails found within that date...
comparision problem...
thank you
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
You're wrong. Comparison it's working well. If you need all the emails of April 2th (for instance) then you have to do something similar to:
startDate.ParseDateTime(_T("2/4/2008"), 0, lcidIt);
endDate.ParseDateTime(_T("3/4/2008"), 0, lcidIt);
mailDate.ParseDateTime(_T("4/2/2008 2:56:50 pm"), 0, lcidUS);
if ( mailDate >= startDate && mailDate < endDate)
{
}
else
{
}
Since startDate actually represent "02/04/2008 00:00:00" and endDate is "03/04/2008 00:00:00".
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
|
|
|
|
|
Hi..
If i compare only once
i.e if(cMailDate < startDate)
its working properly..
but i compare
if(cMailDate <= startDate && cMailDate > endDate)
its not working..
I feel somewhere that in mailDate format is mmddyyyy hh:mm:ss
wheteher time is making problem for comparision.
thank you
sharan
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: if(cMailDate <= startDate && cMailDate > endDate)
Of course. it should be
if(cMailDate <big>>=</big> startDate && cMailDate <big>< </big>endDate)
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
|
|
|
|
|
Hi...
startDate =4/1/2008
endDate=4/3/2008
mailDates = 4/2/2008 7:26:33 pm..
my code is..
/////////////////////////////////////////////////////////
if (mailDate > firstDate && mailDate < secondDate)
{
AfxMessageBox("mails are between startDate and endDate");
}
else
{
AfxMessageBox("mails are not between startDate and endDate");
}
///////////////////////////////////////////////////////////
I should get the message as "mails are between stdate and enddate"
I am getting no mails.
thanking you
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
Sorry, I misunderstood the date formats you're using. if all your dates use the mm/dd/yyyy format (regardless about time) then you've to use always the US format, i.e.
COleDateTime startDate, endDate, mailDate;
DWORD lcidUS = MAKELCID( MAKELANGID( LANG_ENGLISH,SUBLANG_ENGLISH_US), SORT_DEFAULT);
startDate.ParseDateTime(_T("4/1/2008"), 0, lcidUS);
endDate.ParseDateTime(_T("4/3/2008"), 0, lcidUs);
mailDate.ParseDateTime(_T("4/2/2008 7:26:50 pm"), 0, lcidUS);
if ( mailDate >= startDate && mailDate < endDate)
{
}
else
{
}
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
|
|
|
|
|
Hi....
Thank you very very much..Its working fine...
sharan
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
Hi All,
I am trying to display the total physical memory of my system. I used GlobalMemoryStatus() API. After rounding the value I get 447 MB. But, the system properties show the RAM as 448 MB. Does anyone have an idea why we get such a difference and how it could be overcome?
Thank you,
AJ
|
|
|
|
|
A little test on my system confirms the beahaviour you depicted. Then I found this [^], but I don't know if it is correct.
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
|
|
|
|
|
Thanks a lot!!
|
|
|
|
|
Visual Studio 6 had an Export Makefile option but as I am now using Visual Studio 2005 I cannot find this option, has it gone?
Does anyone know what is the method to generate a Make file if you wnat to port your code from Windows to a Unix platform?
Andy
|
|
|
|
|
Have you tried here?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When our application is running overnight SaveDC() returns 0. Please let me know the occurances of failing of SaveDC().
|
|
|
|