Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDIObject leak in my MFC method Pin
Mark Salsbery17-Nov-06 11:59
Mark Salsbery17-Nov-06 11:59 
GeneralRe: GDIObject leak in my MFC method Pin
Steve Echols17-Nov-06 12:09
Steve Echols17-Nov-06 12:09 
GeneralRe: GDIObject leak in my MFC method Pin
earlgraham17-Nov-06 14:06
earlgraham17-Nov-06 14:06 
QuestionWhat is the meaning of Window Properties Pin
sawerr17-Nov-06 8:29
sawerr17-Nov-06 8:29 
AnswerRe: What is the meaning of Window Properties Pin
Mark Salsbery17-Nov-06 10:31
Mark Salsbery17-Nov-06 10:31 
AnswerRe: What is the meaning of Window Properties Pin
Michael Dunn18-Nov-06 14:18
sitebuilderMichael Dunn18-Nov-06 14:18 
QuestionHow to make setfocus work Pin
prithaa17-Nov-06 8:14
prithaa17-Nov-06 8:14 
QuestionTime Zone String Abbreviation Pin
South_Bay_Girl17-Nov-06 6:47
South_Bay_Girl17-Nov-06 6:47 
Hi All,

Does anyone know of a way to get an abbreviated time zone string? For example getting "PST" instead of "Pacific Standard Time"?

The following function looked promising but it returns the full time zone string regardless of the format:

size_t wcsftime(wchar_t *wcs, size_t maxsize, const wchar_t *format,
const struct tm *timptr);

The msdn documentation says that passing in %z or %Z as the format returns "Time-zone name or abbreviation; no characters if time zone is unknown" but as mentioned it always returns the full string regardless of which I use.

I looked in the registry thinking that each time zone key might possibly contain an abbreviation but found nothing. Here's one key I looked at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific Standard Time"

Anyone have any ideas?

Thanks for your help,

Kellie
AnswerRe: Time Zone String Abbreviation Pin
led mike17-Nov-06 7:22
led mike17-Nov-06 7:22 
GeneralRe: Time Zone String Abbreviation Pin
South_Bay_Girl17-Nov-06 9:11
South_Bay_Girl17-Nov-06 9:11 
QuestionRe: Time Zone String Abbreviation Pin
David Crow17-Nov-06 10:53
David Crow17-Nov-06 10:53 
QuestionUpgraded to 2005, now my code is broke. PLEASE HELP! Pin
Dustin Henry17-Nov-06 6:44
Dustin Henry17-Nov-06 6:44 
AnswerRe: Upgraded to 2005, now my code is broke. PLEASE HELP! Pin
Mark Salsbery17-Nov-06 6:49
Mark Salsbery17-Nov-06 6:49 
GeneralRe: Upgraded to 2005, now my code is broke. PLEASE HELP! Pin
Dustin Henry17-Nov-06 6:59
Dustin Henry17-Nov-06 6:59 
GeneralRe: Upgraded to 2005, now my code is broke. PLEASE HELP! Pin
Mark Salsbery17-Nov-06 7:00
Mark Salsbery17-Nov-06 7:00 
Questionhyperthreading Pin
vineeshV17-Nov-06 4:17
vineeshV17-Nov-06 4:17 
Questionthread demon Pin
zizzzz17-Nov-06 3:00
zizzzz17-Nov-06 3:00 
AnswerRe: thread demon Pin
toxcct17-Nov-06 3:25
toxcct17-Nov-06 3:25 
GeneralRe: thread demon Pin
zizzzz17-Nov-06 3:44
zizzzz17-Nov-06 3:44 
QuestionCRichEditCtrl problem Pin
prithaa17-Nov-06 2:12
prithaa17-Nov-06 2:12 
AnswerRe: CRichEditCtrl problem Pin
Parthi_Appu17-Nov-06 2:20
Parthi_Appu17-Nov-06 2:20 
QuestionSomething to understand to new and delete!? Pin
bosfan17-Nov-06 2:06
bosfan17-Nov-06 2:06 
AnswerRe: Something to understand to new and delete!? Pin
Cedric Moonen17-Nov-06 2:14
Cedric Moonen17-Nov-06 2:14 
AnswerRe: Something to understand to new and delete!? Pin
bosfan17-Nov-06 2:34
bosfan17-Nov-06 2:34 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:30
Zac Howland17-Nov-06 5:30 

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.