Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Just a quick one Pin
thes3cr3t15-Nov-07 2:45
thes3cr3t15-Nov-07 2:45 
GeneralRe: Just a quick one[SOLVED] Pin
thes3cr3t110-Nov-07 22:59
thes3cr3t110-Nov-07 22:59 
QuestionCustom Database with jet engine and Dao MFC wrappers! Pin
padamraj5-Nov-07 1:37
padamraj5-Nov-07 1:37 
Questionvirtual address and real address Pin
zon_cpp5-Nov-07 1:10
zon_cpp5-Nov-07 1:10 
AnswerRe: virtual address and real address Pin
James R. Twine5-Nov-07 1:25
James R. Twine5-Nov-07 1:25 
QuestionCString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:06
Marimuthu.r5-Nov-07 1:06 
AnswerRe: CString to COleDateTime type. Pin
James R. Twine5-Nov-07 1:20
James R. Twine5-Nov-07 1:20 
AnswerRe: CString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:37
Marimuthu.r5-Nov-07 1:37 
Hi,
Got the solution
<br />
COleDateTime tmVal;<br />
tmVal.ParseDateTime(tmStr);<br />

will get back my tmVal.

I have another issue.

Are there any API's which will tell me the time format set by the user in
Control Panel -> Region and Language Options -> Custom -> Select Time Tab, in this dialog, please refer to the "Time Format" Combo.

Basically the combo i am refering to above lets me set the format in which time/ date has to be shown to me i.e, by appropriately setting, I can view my current date as either MM/DD/YYYY or YYYY/MM/DD etc.....

Are there any API's which will tell me the current display format set by me?.

I need this info, because I store the string tmStr which I get from the code below.
<br />
COleDateTime tmVal = COleDateTime::GetCurrentTime();<br />
CString tmStr = tmVal.Format(LOCALE_NOUSEROVERRIDE, LOCALE_NEUTRAL);<br />

Depending on the time format selected by the user, I have to accordingly manipulate the string and display it to the user.

Thanks.
QuestionHow to get execution time of a function in microsecs? Pin
shir_k5-Nov-07 0:24
shir_k5-Nov-07 0:24 
AnswerRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 0:52
ThatsAlok5-Nov-07 0:52 
GeneralRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:29
James R. Twine5-Nov-07 1:29 
GeneralRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 2:03
ThatsAlok5-Nov-07 2:03 
AnswerRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:35
James R. Twine5-Nov-07 1:35 
QuestionAPI for Protected o/s Files Pin
bholoo5-Nov-07 0:14
bholoo5-Nov-07 0:14 
QuestionAdmin gets access denied Pin
vipin_nvk5-Nov-07 0:10
vipin_nvk5-Nov-07 0:10 
QuestionRe: Admin gets access denied Pin
Mark Salsbery5-Nov-07 5:35
Mark Salsbery5-Nov-07 5:35 
QuestionHard disk size?!| Pin
Arish rivlin4-Nov-07 23:46
Arish rivlin4-Nov-07 23:46 
AnswerRe: Hard disk size?!| Pin
Paresh Chitte5-Nov-07 0:05
Paresh Chitte5-Nov-07 0:05 
AnswerRe: Hard disk size?!| Pin
ThatsAlok5-Nov-07 0:48
ThatsAlok5-Nov-07 0:48 
NewsJust a side note... Pin
jhwurmbach5-Nov-07 7:36
jhwurmbach5-Nov-07 7:36 
Questionhow to debug thread in other process? CreateRemoteThread Pin
code_discuss4-Nov-07 23:02
code_discuss4-Nov-07 23:02 
QuestionAccess DLL from "Common files" in multilingual environment Pin
FredeCH4-Nov-07 22:12
FredeCH4-Nov-07 22:12 
AnswerRe: Access DLL from "Common files" in multilingual environment Pin
Nelek4-Nov-07 23:54
protectorNelek4-Nov-07 23:54 
GeneralRe: Access DLL from "Common files" in multilingual environment Pin
FredeCH5-Nov-07 1:42
FredeCH5-Nov-07 1:42 
GeneralOfftopic Pin
Nelek5-Nov-07 2:14
protectorNelek5-Nov-07 2:14 

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.