Click here to Skip to main content
15,884,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read a string with spaces Pin
CodingLover12-Sep-11 19:02
CodingLover12-Sep-11 19:02 
GeneralRe: Read a string with spaces Pin
abhishek.biradar13-Sep-11 2:51
abhishek.biradar13-Sep-11 2:51 
QuestionHow to set/remove ES_READONLY style of CEdit at runtime? Pin
includeh107-Sep-11 5:24
includeh107-Sep-11 5:24 
QuestionRe: How to set/remove ES_READONLY style of CEdit at runtime? Pin
David Crow7-Sep-11 6:09
David Crow7-Sep-11 6:09 
AnswerRe: How to set/remove ES_READONLY style of CEdit at runtime? Pin
Orjan Westin7-Sep-11 23:41
professionalOrjan Westin7-Sep-11 23:41 
QuestionWTSSendMessage Failing Pin
Arun Parthasarathy7-Sep-11 1:58
Arun Parthasarathy7-Sep-11 1:58 
AnswerRe: WTSSendMessage Failing Pin
Code-o-mat7-Sep-11 4:09
Code-o-mat7-Sep-11 4:09 
QuestionCTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 13:31
Kyudos6-Sep-11 13:31 
We have a print template that replaces generic keywords with specific information, and I've had some reports that the locale specific date format isn't 'taking' on some machines. We have:

C++
if (Key == _T("#CDAT#"))
{
    // Current date - use current users settings for short date
    CTime time = CTime::GetCurrentTime();
    Text = time.Format("%x");
}


This appears to work fine on all the machines I've tested it on, under XP, Vista and Win7. But we have a couple of users (one XP, one Win7) that report having to go to the control panel regional settings and 'flip' them, to get the right format in our app. And they report having to do this every time our app is restarted.

To be clear, these users have something like the following scenario:

1) They use the template and see the date come out in English (US) format (mm/dd/yy)
2) They go to regional settings and see that the locale is set to English (New Zealand), and thus the date should be in (dd/mm/yy) format.
3) They flip to English (US) and OK everything.
4) They go back to the settings and flip them back to English (New Zealand). This solves the problem until...
5) Our app is restarted, and steps 1-4 must be repeated.

I'm at a loss to even imagine how this behaviour could occur. There aren't any services or anything that try and 'fix' your locale settings are there? Anyone got any ideas?

Cheers
NewsRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 14:59
Kyudos6-Sep-11 14:59 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
zhangyupeng7-Sep-11 1:41
zhangyupeng7-Sep-11 1:41 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
David Crow7-Sep-11 6:19
David Crow7-Sep-11 6:19 
GeneralRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos7-Sep-11 15:23
Kyudos7-Sep-11 15:23 
QuestionIOCompletion in a server also acting as client Pin
Ole Gry Pedersen6-Sep-11 3:52
Ole Gry Pedersen6-Sep-11 3:52 
AnswerRe: IOCompletion in a server also acting as client Pin
«_Superman_»6-Sep-11 16:56
professional«_Superman_»6-Sep-11 16:56 
QuestionDebugging Remote Pin
kLvin725-Sep-11 22:54
kLvin725-Sep-11 22:54 
AnswerRe: Debugging Remote Pin
Erudite_Eric7-Sep-11 6:12
Erudite_Eric7-Sep-11 6:12 
QuestionProblem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 19:51
Cold_Fearing_Bird5-Sep-11 19:51 
AnswerRe: Problem with SetLayeredWindowAttribute Pin
Iain Clarke, Warrior Programmer5-Sep-11 21:17
Iain Clarke, Warrior Programmer5-Sep-11 21:17 
GeneralRe: Problem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 21:51
Cold_Fearing_Bird5-Sep-11 21:51 
SuggestionHelp me to choose right "Certification" Pin
shanmugarajaa5-Sep-11 18:57
shanmugarajaa5-Sep-11 18:57 
GeneralRe: Help me to choose right "Certification" PinPopular
CPallini5-Sep-11 22:03
mveCPallini5-Sep-11 22:03 
GeneralRe: Help me to choose right "Certification" Pin
zhzh6033696217-Sep-11 4:02
zhzh6033696217-Sep-11 4:02 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 5:40
shanmugarajaa7-Sep-11 5:40 
GeneralRe: Help me to choose right "Certification" Pin
David Crow7-Sep-11 6:30
David Crow7-Sep-11 6:30 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 7:38
shanmugarajaa7-Sep-11 7:38 

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.