Click here to Skip to main content
15,889,403 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondisplay text Pin
kevincwong12-Nov-05 17:29
kevincwong12-Nov-05 17:29 
AnswerRe: display text Pin
Gary R. Wheeler13-Nov-05 2:36
Gary R. Wheeler13-Nov-05 2:36 
GeneralRe: display text Pin
Rajesh R Subramanian13-Nov-05 21:20
professionalRajesh R Subramanian13-Nov-05 21:20 
GeneralRe: display text Pin
kevincwong16-Nov-05 21:34
kevincwong16-Nov-05 21:34 
QuestionHow to read/write a byte to LPT ? Pin
quangpk12-Nov-05 13:46
quangpk12-Nov-05 13:46 
AnswerRe: How to read/write a byte to LPT ? Pin
LighthouseJ12-Nov-05 17:22
LighthouseJ12-Nov-05 17:22 
AnswerRe: How to read/write a byte to LPT ? Pin
vikas amin12-Nov-05 19:54
vikas amin12-Nov-05 19:54 
QuestionRegional Settings: Get Hour Difference from UTC and Week Day Name Pin
Axonn Echysttas12-Nov-05 13:19
Axonn Echysttas12-Nov-05 13:19 
Hello to all the weekend programmers in the house ::- ) (since it's Sunday 2 AM right now...). Is there any night-bird (or morning bird if we're at it...) able to tell me how can I retrieve such regional settings from the Windows OS like UTC Hour Difference and Week Day Name? I know it MUST be possible somehow but I searched a bit and didn't find anything relevant.

APIs such as GetSystemMetrics or SystemParametersInfo don't seem to be of any help (or am did I miss something?). So GetSystemTime returns the time in UTC format. How can I convert it to the format that the local Windows user uses?? What about the week day name? In English it's Sunday but if the user uses a French regional package it would be Dimanche (I hope I didn't mess up the spelling). Soooooooooo?

Edit 1: Stuff like CIMV2 is not good 'cause it only works on NT.

Edit 2: I found how to get the UTC time difference. Here's the answer: GetTimeZoneInformation API. Now what about the day of the week name in the regional language of the user. The Operating System has usually has them. Anybody know anything about how to get it?? ::- ).

-= E C H Y S T T A S =-
The Greater Mind Balance

-- modified at 3:52 Sunday 13th November, 2005
AnswerRe: Regional Settings: Get Hour Difference from UTC and Week Day Name Pin
Gary R. Wheeler13-Nov-05 4:50
Gary R. Wheeler13-Nov-05 4:50 
GeneralRe: Regional Settings: Get Hour Difference from UTC and Week Day Name Pin
Axonn Echysttas17-Nov-05 19:35
Axonn Echysttas17-Nov-05 19:35 
QuestionCreate a toplevel window in SDI Pin
AnTri12-Nov-05 9:24
AnTri12-Nov-05 9:24 
AnswerRe: Create a toplevel window in SDI Pin
Trollslayer12-Nov-05 9:59
mentorTrollslayer12-Nov-05 9:59 
GeneralRe: Create a toplevel window in SDI Pin
AnTri12-Nov-05 10:08
AnTri12-Nov-05 10:08 
QuestionSort Arrow Erased on inital drawing Pin
RobertW10012-Nov-05 9:11
RobertW10012-Nov-05 9:11 
AnswerRe: Sort Arrow Erased on inital drawing Pin
Michael Dunn13-Nov-05 12:41
sitebuilderMichael Dunn13-Nov-05 12:41 
QuestionOverloading "operator new" Pin
Obi Wan 212-Nov-05 4:26
Obi Wan 212-Nov-05 4:26 
AnswerRe: Overloading "operator new" Pin
Bob Stanneveld12-Nov-05 4:54
Bob Stanneveld12-Nov-05 4:54 
GeneralRe: Overloading "operator new" Pin
Obi Wan 212-Nov-05 6:00
Obi Wan 212-Nov-05 6:00 
GeneralRe: Overloading "operator new" Pin
Bob Stanneveld13-Nov-05 2:37
Bob Stanneveld13-Nov-05 2:37 
QuestionKeyboard Hook Pin
#realJSOP12-Nov-05 3:39
mve#realJSOP12-Nov-05 3:39 
AnswerRe: Keyboard Hook Pin
Mircea Puiu12-Nov-05 3:44
Mircea Puiu12-Nov-05 3:44 
GeneralRe: Keyboard Hook Pin
#realJSOP12-Nov-05 4:53
mve#realJSOP12-Nov-05 4:53 
GeneralRe: Keyboard Hook Pin
Jack Puppy12-Nov-05 6:14
Jack Puppy12-Nov-05 6:14 
GeneralRe: Keyboard Hook Pin
Mircea Puiu12-Nov-05 9:01
Mircea Puiu12-Nov-05 9:01 
GeneralRe: Keyboard Hook Pin
#realJSOP13-Nov-05 2:09
mve#realJSOP13-Nov-05 2:09 

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.