Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MultiByteToWideChar Pin
Steve S20-Jul-06 1:44
Steve S20-Jul-06 1:44 
AnswerRe: MultiByteToWideChar Pin
bosfan20-Jul-06 1:49
bosfan20-Jul-06 1:49 
AnswerRe: MultiByteToWideChar Pin
Naveen20-Jul-06 1:50
Naveen20-Jul-06 1:50 
GeneralRe: MultiByteToWideChar Pin
tanarnelinistit20-Jul-06 3:23
tanarnelinistit20-Jul-06 3:23 
QuestionRe: MultiByteToWideChar Pin
David Crow20-Jul-06 3:49
David Crow20-Jul-06 3:49 
AnswerRe: MultiByteToWideChar Pin
tanarnelinistit20-Jul-06 3:54
tanarnelinistit20-Jul-06 3:54 
GeneralRe: MultiByteToWideChar Pin
Naveen20-Jul-06 17:27
Naveen20-Jul-06 17:27 
QuestionDate and Time Picker Pin
goodoljosh198020-Jul-06 1:27
goodoljosh198020-Jul-06 1:27 
Hey All,

I am implementing the Date & Time Picker through MFC. I placed it on my dialog and assigned a variable to it...CDateTimeCtrl m_DateTime;

I also added the event handler OnDtnCloseupDatetimepicker, and it works fine as long as I don't try to pick a date before Jan 1, 1970. If I pick a date before then, I get a Debug Assertion error on atltime.inl, Line 167, Expression: m_time != -1.

I have never seen this before....

Here is the code that I have in the closeup function...
void Measure1::OnDtnCloseupDatetimepicker1(NMHDR *pNMHDR, LRESULT *pResult)
{
m_DateTime.GetTime(time);
int mnth = time.GetMonth();
switch(mnth)
{
case 1: Month = "January";
break;

case 2: Month = "February";
break;
case 3: Month = "March";
break;
case 4: Month = "April";
break;
case 5: Month = "May";
break;
case 6: Month = "June";
break;
case 7: Month = "July";
break;
case 8: Month = "August";
break;
case 9: Month = "September";
break;
case 10: Month = "October";
break;
case 11: Month = "November";
break;
case 12: Month = "December";
break;
}
Day = time.GetDay();
Year = time.GetYear();
*pResult = 0;
}

Thanks in advance....
AnswerRe: Date and Time Picker Pin
krmed20-Jul-06 2:24
krmed20-Jul-06 2:24 
AnswerRe: Date and Time Picker Pin
-Dy20-Jul-06 2:31
-Dy20-Jul-06 2:31 
QuestionWhere is the mouse?? Pin
Dimitris Vikeloudas20-Jul-06 1:11
Dimitris Vikeloudas20-Jul-06 1:11 
AnswerRe: Where is the mouse?? Pin
Blake Miller20-Jul-06 7:05
Blake Miller20-Jul-06 7:05 
AnswerRe: Where is the mouse?? Pin
Roger Allen20-Jul-06 11:52
Roger Allen20-Jul-06 11:52 
QuestionAdministrator Privilege [modified] Pin
ragavan19-Jul-06 23:50
ragavan19-Jul-06 23:50 
AnswerRe: Administrator Privilege Pin
Naveen19-Jul-06 23:57
Naveen19-Jul-06 23:57 
AnswerRe: Administrator Privilege Pin
Mike Dimmick20-Jul-06 0:22
Mike Dimmick20-Jul-06 0:22 
AnswerRe: Administrator Privilege Pin
ThatsAlok21-Jul-06 0:32
ThatsAlok21-Jul-06 0:32 
Questionbrekpointing every function Pin
TClarke19-Jul-06 23:15
TClarke19-Jul-06 23:15 
AnswerRe: brekpointing every function Pin
toxcct19-Jul-06 23:24
toxcct19-Jul-06 23:24 
AnswerRe: brekpointing every function Pin
Naveen19-Jul-06 23:31
Naveen19-Jul-06 23:31 
GeneralRe: brekpointing every function Pin
TClarke19-Jul-06 23:35
TClarke19-Jul-06 23:35 
GeneralRe: brekpointing every function Pin
Renjith Ramachandran20-Jul-06 0:24
Renjith Ramachandran20-Jul-06 0:24 
GeneralRe: brekpointing every function Pin
Naveen20-Jul-06 0:30
Naveen20-Jul-06 0:30 
QuestionVirtual drive not seen when i open it from file->open/save as option from any application Pin
Sandhya91019-Jul-06 23:06
Sandhya91019-Jul-06 23:06 
QuestionHow to invoke an application executable from DLL.? Pin
ashokbngr19-Jul-06 22:54
ashokbngr19-Jul-06 22:54 

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.