Click here to Skip to main content
15,867,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Capturing screen content behind an open window Pin
Richard MacCutchan17-Nov-11 11:12
mveRichard MacCutchan17-Nov-11 11:12 
AnswerRe: Capturing screen content behind an open window Pin
Bernhard Hiller18-Nov-11 1:31
Bernhard Hiller18-Nov-11 1:31 
AnswerRe: Capturing screen content behind an open window Pin
Software_Developer18-Nov-11 5:07
Software_Developer18-Nov-11 5:07 
GeneralRe: Capturing screen content behind an open window Pin
ryan218921-Nov-11 5:04
ryan218921-Nov-11 5:04 
QuestionSelLocale in C++ Pin
CliffRat17-Nov-11 7:44
CliffRat17-Nov-11 7:44 
AnswerRe: SelLocale in C++ Pin
Richard MacCutchan17-Nov-11 8:32
mveRichard MacCutchan17-Nov-11 8:32 
GeneralRe: SelLocale in C++ Pin
CliffRat17-Nov-11 10:23
CliffRat17-Nov-11 10:23 
AnswerRe: SelLocale in C++ Pin
Software_Developer18-Nov-11 5:06
Software_Developer18-Nov-11 5:06 
The [setlocale] function.

The code below sets the current locale to "Germany".

// crt_locale.c
/* Sets the current locale to "Germany" using the
 * setlocale function and demonstrates its effect on the strftime
 * function.
 */

#include <stdio.h>
#include <locale.h>
#include <time.h>

int main(void)
{
       time_t ltime;
       struct tm *thetime;
       unsigned char str[100];

       setlocale(LC_ALL, "German");
       time (&ltime);
       thetime = gmtime(&ltime);

       /* %#x is the long date representation, appropriate to
        * the current locale
        */
       if (!strftime((char *)str, 100, "%#x", 
                     (const struct tm *)thetime))
               printf("strftime failed!\n");
       else
               printf("In German locale, strftime returns '%s'\n", 
                      str);

       /* Set the locale back to the default environment */
       setlocale(LC_ALL, "C");
       time (&ltime);
       thetime = gmtime(&ltime);

       if (!strftime((char *)str, 100, "%#x", 
                     (const struct tm *)thetime))
               printf("strftime failed!\n");
       else
               printf("In 'C' locale, strftime returns '%s'\n", 
                      str);
}

GeneralRe: SelLocale in C++ Pin
CliffRat22-Nov-11 16:01
CliffRat22-Nov-11 16:01 
AnswerRe: SelLocale in C++ Pin
jschell18-Nov-11 10:23
jschell18-Nov-11 10:23 
AnswerRe: SelLocale in C++ Pin
CliffRat5-Dec-11 6:00
CliffRat5-Dec-11 6:00 
QuestionDos FTP & Unix File Details Pin
TrickyDickyRg17-Nov-11 3:01
TrickyDickyRg17-Nov-11 3:01 
AnswerRe: Dos FTP & Unix File Details Pin
Code-o-mat17-Nov-11 5:41
Code-o-mat17-Nov-11 5:41 
GeneralRe: Dos FTP & Unix File Details Pin
TrickyDickyRg17-Nov-11 5:44
TrickyDickyRg17-Nov-11 5:44 
AnswerRe: Dos FTP & Unix File Details Pin
Randor 17-Nov-11 6:13
professional Randor 17-Nov-11 6:13 
QuestionCan we create multiple message maps in a Dialog? Pin
rahul.kulshreshtha17-Nov-11 1:27
rahul.kulshreshtha17-Nov-11 1:27 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Chris Meech17-Nov-11 2:51
Chris Meech17-Nov-11 2:51 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 3:02
Chuck O'Toole17-Nov-11 3:02 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Erudite_Eric17-Nov-11 3:57
Erudite_Eric17-Nov-11 3:57 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 4:16
Chuck O'Toole17-Nov-11 4:16 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Erudite_Eric17-Nov-11 4:21
Erudite_Eric17-Nov-11 4:21 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
rahul.kulshreshtha17-Nov-11 5:32
rahul.kulshreshtha17-Nov-11 5:32 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Chris Meech17-Nov-11 5:39
Chris Meech17-Nov-11 5:39 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
rahul.kulshreshtha17-Nov-11 6:08
rahul.kulshreshtha17-Nov-11 6:08 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 10:17
Chuck O'Toole17-Nov-11 10:17 

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.