Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Numega Boundschecker Pin
Christian Graus28-Apr-02 20:37
protectorChristian Graus28-Apr-02 20:37 
GeneralGlolbal mouse hotkey Pin
28-Apr-02 17:53
suss28-Apr-02 17:53 
GeneralRe: Glolbal mouse hotkey Pin
Nish Nishant28-Apr-02 19:54
sitebuilderNish Nishant28-Apr-02 19:54 
GeneralRe: Glolbal mouse hotkey Pin
28-Apr-02 20:25
suss28-Apr-02 20:25 
Generalusing strings as key for std::hash_map Pin
28-Apr-02 17:16
suss28-Apr-02 17:16 
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell29-Apr-02 13:40
Mike Nordell29-Apr-02 13:40 
GeneralRe: using strings as key for std::hash_map Pin
Chris Hafey29-Apr-02 13:56
Chris Hafey29-Apr-02 13:56 
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell29-Apr-02 14:44
Mike Nordell29-Apr-02 14:44 
Chris Hafey wrote:
and add a hash() method to std::string

Here we go again. You don't think this issue has been beaten to death by C++ experts? Smile | :)

Exactly WHAT would your hash aglorithm be for a string? Not everyone wants the same, and you better watch your back before introducing suggestions about introducing virtual member functions into std::basic_string to be able to overload on your personal notion of what a hash value should be. :->

Microsoft clearly could have put more effort into this, especially since >90% of hash tables use strings as keys.

Microsoft has basically NOTHING to do with this. The standard C++ (with emphasis on C++) library provided by MSVC is the Dinkumware library. Microsoft couldn't create such a work of art even if they wanted to.

But since you now have made a statement that more than 90% of the hash_table uses use a string as the key, I urge you (nay, I challange you) to prove this. I'd say you're speaking out of the south end of a north going 'ru.

In fact, I have personally never used a non string key in a hash.

And you think you should in some way be in authority when speaking about using C++ here, especially with statements like "Well I have surely never seen anything else"? Get real! You are in a forum where many use MFC and actually think it's good!!!

I urge you to read up on compl.lang.c++.moderated, and please read it a while before posting your ideas to not make a fool out of yourself.
GeneralRe: using strings as key for std::hash_map Pin
29-Apr-02 16:20
suss29-Apr-02 16:20 
GeneralRe: using strings as key for std::hash_map Pin
Mike Nordell1-May-02 10:15
Mike Nordell1-May-02 10:15 
GeneralNeed C++ code running in dos base to turn computer off. Pin
Ronnie28-Apr-02 15:22
Ronnie28-Apr-02 15:22 
GeneralRe: Need C++ code running in dos base to turn computer off. Pin
Nish Nishant28-Apr-02 17:29
sitebuilderNish Nishant28-Apr-02 17:29 
GeneralRe: Need C++ code running in dos base to turn computer off. Pin
Mike Nordell29-Apr-02 13:43
Mike Nordell29-Apr-02 13:43 
QuestionHow to pass data to a C++ program during a dialog when a button is pressed? Pin
Learning28-Apr-02 11:37
Learning28-Apr-02 11:37 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Tim Smith28-Apr-02 11:48
Tim Smith28-Apr-02 11:48 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz28-Apr-02 23:51
Joao Vaz28-Apr-02 23:51 
GeneralRe: InterlockedIncrement ... Pin
Tim Smith29-Apr-02 2:31
Tim Smith29-Apr-02 2:31 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz29-Apr-02 2:38
Joao Vaz29-Apr-02 2:38 
GeneralRe: InterlockedIncrement ... Pin
Tim Smith29-Apr-02 2:51
Tim Smith29-Apr-02 2:51 
GeneralRe: InterlockedIncrement ... Pin
Joao Vaz29-Apr-02 2:57
Joao Vaz29-Apr-02 2:57 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Joaquín M López Muñoz28-Apr-02 11:50
Joaquín M López Muñoz28-Apr-02 11:50 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Ravi Bhavnani28-Apr-02 12:15
professionalRavi Bhavnani28-Apr-02 12:15 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Nish Nishant28-Apr-02 14:16
sitebuilderNish Nishant28-Apr-02 14:16 
AnswerRe: How to pass data to a C++ program during a dialog when a button is pressed? Pin
Gaurika Wijeratne28-Apr-02 19:28
Gaurika Wijeratne28-Apr-02 19:28 
GeneralStopping a video when any key is pressed Pin
28-Apr-02 11:06
suss28-Apr-02 11:06 

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.