Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Major Multithread Problem :: MFC Pin
valikac30-Apr-02 12:35
valikac30-Apr-02 12:35 
GeneralRe: Possible Problem Pin
valikac30-Apr-02 12:59
valikac30-Apr-02 12:59 
GeneralRe: Possible Problem Pin
Neville Franks30-Apr-02 16:04
Neville Franks30-Apr-02 16:04 
QuestionLocale : do I get the wrong standard library????? Pin
Maxwell Chen29-Apr-02 17:23
Maxwell Chen29-Apr-02 17:23 
AnswerRe: Locale : do I get the wrong standard library????? Pin
Christian Graus29-Apr-02 17:40
protectorChristian Graus29-Apr-02 17:40 
GeneralRe: Locale : do I get the wrong standard library????? Pin
Maxwell Chen29-Apr-02 19:01
Maxwell Chen29-Apr-02 19:01 
GeneralRe: Locale : do I get the wrong standard library????? Pin
Christian Graus29-Apr-02 20:15
protectorChristian Graus29-Apr-02 20:15 
AnswerRe: Locale : do I get the wrong standard library????? Pin
Joaquín M López Muñoz29-Apr-02 21:01
Joaquín M López Muñoz29-Apr-02 21:01 
Hi Maxwell, VC++ supports very defficiently this part of the standard library. The following modified version of the original sample compiles and works fine in VC++ 5.0 (hopefully it will work also for VC++ 6.0):
#include <iostream>
#include <locale>
#include <string>
 
using namespace std;
 
class my_punct:public std::numpunct<char>
{
  protected:
    char do_thousands_sep() const {return ',';}
    std::string do_grouping() const {return "\3";}
  public:
    my_punct():numpunct<char>(){}
};
 
int main(){
  locale  loc = cout.getloc(); // get current locale.
  locale new_loc=_ADDFAC(loc,new my_punct);        
  cout.imbue(new_loc); // use new_loc        
  cout <<1000000 << endl;
  cout.imbue(loc);        // restore the locale to normal
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Locale : do I get the wrong standard library????? Pin
Maxwell Chen29-Apr-02 22:57
Maxwell Chen29-Apr-02 22:57 
GeneralRe: Locale : do I get the wrong standard library????? Pin
Joaquín M López Muñoz29-Apr-02 23:09
Joaquín M López Muñoz29-Apr-02 23:09 
AnswerRe: Locale : do I get the wrong standard library????? Pin
Michael Dunn30-Apr-02 10:49
sitebuilderMichael Dunn30-Apr-02 10:49 
GeneralA question on Socket. Pin
GooGoo29-Apr-02 17:20
GooGoo29-Apr-02 17:20 
GeneralRe: A question on Socket. Pin
Nish Nishant29-Apr-02 17:38
sitebuilderNish Nishant29-Apr-02 17:38 
GeneralRe: A question on Socket. Pin
GooGoo29-Apr-02 17:40
GooGoo29-Apr-02 17:40 
QuestionIn one thread,how to kill another thread? Pin
GooGoo29-Apr-02 15:06
GooGoo29-Apr-02 15:06 
AnswerRe: In one thread,how to kill another thread? Pin
GooGoo29-Apr-02 15:18
GooGoo29-Apr-02 15:18 
GeneralRe: In one thread,how to kill another thread? Pin
GooGoo29-Apr-02 15:27
GooGoo29-Apr-02 15:27 
GeneralRe: In one thread,how to kill another thread? Pin
Nish Nishant29-Apr-02 15:30
sitebuilderNish Nishant29-Apr-02 15:30 
GeneralRe: In one thread,how to kill another thread? Pin
GooGoo29-Apr-02 15:40
GooGoo29-Apr-02 15:40 
GeneralRe: In one thread,how to kill another thread? Pin
Nish Nishant29-Apr-02 15:46
sitebuilderNish Nishant29-Apr-02 15:46 
GeneralRe: In one thread,how to kill another thread? Pin
GooGoo29-Apr-02 16:12
GooGoo29-Apr-02 16:12 
GeneralRe: In one thread,how to kill another thread? Pin
John M. Drescher30-Apr-02 9:25
John M. Drescher30-Apr-02 9:25 
GeneralA question about Listview Pin
xsword29-Apr-02 14:53
xsword29-Apr-02 14:53 
GeneralRe: A question about Listview Pin
29-Apr-02 17:21
suss29-Apr-02 17:21 
Generalvirtual function crash Pin
Steve Severance29-Apr-02 14:11
Steve Severance29-Apr-02 14:11 

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.