Click here to Skip to main content
15,885,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error C2011: '_CONTEXT' : 'struct' type redefinition Pin
Stephen Hewitt6-Feb-09 4:52
Stephen Hewitt6-Feb-09 4:52 
QuestionString Comparing Pin
brucewayn5-Feb-09 18:08
brucewayn5-Feb-09 18:08 
AnswerRe: String Comparing Pin
Cedric Moonen5-Feb-09 20:10
Cedric Moonen5-Feb-09 20:10 
GeneralRe: String Comparing Pin
brucewayn5-Feb-09 20:53
brucewayn5-Feb-09 20:53 
GeneralRe: String Comparing Pin
tasumisra5-Feb-09 21:08
tasumisra5-Feb-09 21:08 
AnswerRe: String Comparing Pin
cmk5-Feb-09 20:53
cmk5-Feb-09 20:53 
GeneralRe: String Comparing Pin
brucewayn5-Feb-09 20:59
brucewayn5-Feb-09 20:59 
GeneralRe: String Comparing Pin
cmk6-Feb-09 8:55
cmk6-Feb-09 8:55 
That's not the same as the original you showed.

In your op both were 19: which made me assume you were using 2 digit formatting for everything but day, which is why i said change it.

You said you are saving the string so i assume you control the formatting.
Just use YYYY/MM/DD|hh:mm:ss and you'll be fine.

So for your last example you'd have:
str = "2009/12/03|19:04:43"
str1 = "2009/12/03|09:05:23"

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

AnswerRe: String Comparing Pin
«_Superman_»5-Feb-09 21:12
professional«_Superman_»5-Feb-09 21:12 
QuestionWhy CString is Not Relasing memory in Release mode Pin
Ramasani5-Feb-09 17:55
Ramasani5-Feb-09 17:55 
AnswerRe: Why CString is Not Relasing memory in Release mode Pin
Stuart Dootson5-Feb-09 19:58
professionalStuart Dootson5-Feb-09 19:58 
AnswerRe: Why CString is Not Relasing memory in Release mode Pin
CPallini6-Feb-09 3:32
mveCPallini6-Feb-09 3:32 
AnswerRe: Why CString is Not Relasing memory in Release mode Pin
Rajesh R Subramanian6-Feb-09 4:14
professionalRajesh R Subramanian6-Feb-09 4:14 
Questionwindows services and windows 2008 Pin
vikramlinux5-Feb-09 17:51
vikramlinux5-Feb-09 17:51 
AnswerRe: windows services and windows 2008 Pin
daniel_zy5-Feb-09 21:35
daniel_zy5-Feb-09 21:35 
GeneralRe: windows services and windows 2008 Pin
vikramlinux5-Feb-09 22:16
vikramlinux5-Feb-09 22:16 
GeneralRe: windows services and windows 2008 Pin
daniel_zy5-Feb-09 23:20
daniel_zy5-Feb-09 23:20 
GeneralRe: windows services and windows 2008 Pin
vikramlinux6-Feb-09 0:11
vikramlinux6-Feb-09 0:11 
AnswerRe: windows services and windows 2008 Pin
Stuart Dootson5-Feb-09 21:38
professionalStuart Dootson5-Feb-09 21:38 
Question64 bit equivalent of flex grid control and chart control Pin
raji_ushus5-Feb-09 17:46
raji_ushus5-Feb-09 17:46 
QuestionInvalidate() [modified] Pin
gemini5jun5-Feb-09 17:32
gemini5jun5-Feb-09 17:32 
Question[Message Deleted] Pin
regnwald5-Feb-09 15:44
regnwald5-Feb-09 15:44 
AnswerRe: Calling an existing form from another existing form Pin
Cedric Moonen5-Feb-09 20:06
Cedric Moonen5-Feb-09 20:06 
GeneralRe: Calling an existing form from another existing form Pin
regnwald6-Feb-09 15:31
regnwald6-Feb-09 15:31 
QuestionOperating system location (drive letter) Pin
FloatingMarc5-Feb-09 15:00
FloatingMarc5-Feb-09 15:00 

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.