Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inserting Text (Adding) In CEditView :: MFC Pin
Christian Graus11-Apr-02 20:55
protectorChristian Graus11-Apr-02 20:55 
GeneralScrollbar questions Pin
ejw11-Apr-02 16:22
ejw11-Apr-02 16:22 
GeneralRe: Scrollbar questions Pin
Ravi Bhavnani11-Apr-02 16:32
professionalRavi Bhavnani11-Apr-02 16:32 
GeneralRe: Scrollbar questions Pin
Shog911-Apr-02 17:10
sitebuilderShog911-Apr-02 17:10 
GeneralRe: Scrollbar questions Pin
ejw11-Apr-02 19:10
ejw11-Apr-02 19:10 
Questionhash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:03
blizzymadden11-Apr-02 15:03 
AnswerRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 15:03
protectorChristian Graus11-Apr-02 15:03 
GeneralRe: hash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:16
blizzymadden11-Apr-02 15:16 
Thanks for the interest, Christian. Here is the block of code that does work:

hash_map<float,float> intmap;
intmap.insert(pair<float,float>(5,.7) );

and here is what doesn't work:

hash_map<wstring,wstring> intmap;
intmap.insert(pair<wstring,wstring>(L"",L"") );

All I did was change "int" to "wstring" and the values to blank wide strings. The compiler complains about a type cast between wstring and size_t. The compiler points to this block of code in the file xhash as being the problem:

size_t operator()(const _Kty& _Keyval) const
{ // hash _Keyval to size_t value
return ((size_t)_Keyval);
}

Perhaps I am doing something wrong, but I have never had problems with templates before like this. Thanks for your help.

Blizzt
GeneralRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 15:20
protectorChristian Graus11-Apr-02 15:20 
GeneralRe: hash_map in C++ 7? Pin
Tim Smith11-Apr-02 16:26
Tim Smith11-Apr-02 16:26 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:58
Mike Nordell11-Apr-02 16:58 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:56
Mike Nordell11-Apr-02 16:56 
GeneralRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 17:33
protectorChristian Graus11-Apr-02 17:33 
GeneralUtilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 13:54
valikac11-Apr-02 13:54 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Christian Graus11-Apr-02 14:19
protectorChristian Graus11-Apr-02 14:19 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 15:32
valikac11-Apr-02 15:32 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Roger Allen12-Apr-02 3:05
Roger Allen12-Apr-02 3:05 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
valikac12-Apr-02 4:49
valikac12-Apr-02 4:49 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Ravi Bhavnani12-Apr-02 5:09
professionalRavi Bhavnani12-Apr-02 5:09 
GeneralLink Problem Pin
albean11-Apr-02 12:38
albean11-Apr-02 12:38 
GeneralRe: Link Problem Pin
Ravi Bhavnani11-Apr-02 13:01
professionalRavi Bhavnani11-Apr-02 13:01 
GeneralTrial-version Pin
11-Apr-02 12:34
suss11-Apr-02 12:34 
GeneralRe: Trial-version Pin
Christian Graus11-Apr-02 13:02
protectorChristian Graus11-Apr-02 13:02 
GeneralValid e-mail address Pin
Ola Carlsson11-Apr-02 12:08
Ola Carlsson11-Apr-02 12:08 
GeneralRe: Valid e-mail address Pin
Christian Graus11-Apr-02 12:13
protectorChristian Graus11-Apr-02 12:13 

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.