Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to capture ctrl+down arrow key. Pin
jhwurmbach22-Oct-07 1:18
jhwurmbach22-Oct-07 1:18 
GeneralRe: how to capture ctrl+down arrow key. Pin
chandu00422-Oct-07 1:35
chandu00422-Oct-07 1:35 
QuestionHelp for stdext::hash_map in VS2005! Pin
bosfan21-Oct-07 23:16
bosfan21-Oct-07 23:16 
AnswerRe: Help for stdext::hash_map in VS2005! [modified] Pin
jhwurmbach22-Oct-07 1:21
jhwurmbach22-Oct-07 1:21 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
bosfan22-Oct-07 22:45
bosfan22-Oct-07 22:45 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
jhwurmbach23-Oct-07 0:02
jhwurmbach23-Oct-07 0:02 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
bosfan23-Oct-07 0:54
bosfan23-Oct-07 0:54 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
jhwurmbach23-Oct-07 1:01
jhwurmbach23-Oct-07 1:01 
The line you were missing:
typedef stdext::hash_map< LPCTSTR, CMyClass, stdext::hash_compare< LPCTSTR, std::less<LPCTSTR> > > MyHashMapT;
I hate how the pre-tag is not able to take its content literally!

The value_type should just be a std::pair made of key-type and value-type. It might actually be clearer to write:
std::pair<MyHashMapIt, bool> result = myhashmap.insert( std::pair< LPCTSTR, CMyClass>( _T("John-Boy")/*instance1.csVName*/, instance1));
result = myhashmap.insert(  std::pair< LPCTSTR, CMyClass>( _T("Jim-Bob")/*instance2.csVName*/, instance2));




Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: Help for stdext::hash_map in VS2005! Pin
bosfan25-Oct-07 4:34
bosfan25-Oct-07 4:34 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
jhwurmbach25-Oct-07 4:41
jhwurmbach25-Oct-07 4:41 
QuestionEmbedding Copy Exe in Application Exe? Pin
Ash2021-Oct-07 23:03
Ash2021-Oct-07 23:03 
AnswerRe: Embedding Copy Exe in Application Exe? Pin
Renjith Ramachandran22-Oct-07 0:41
Renjith Ramachandran22-Oct-07 0:41 
AnswerRe: Embedding Copy Exe in Application Exe? Pin
Nibu babu thomas22-Oct-07 0:42
Nibu babu thomas22-Oct-07 0:42 
AnswerRe: Embedding Copy Exe in Application Exe? Pin
JudyL_MD22-Oct-07 3:03
JudyL_MD22-Oct-07 3:03 
Questionassert Pin
George_George21-Oct-07 22:35
George_George21-Oct-07 22:35 
AnswerRe: assert Pin
Matthew Faithfull21-Oct-07 23:08
Matthew Faithfull21-Oct-07 23:08 
GeneralRe: assert Pin
George_George22-Oct-07 0:10
George_George22-Oct-07 0:10 
GeneralRe: assert Pin
Matthew Faithfull22-Oct-07 0:46
Matthew Faithfull22-Oct-07 0:46 
GeneralRe: assert Pin
George_George22-Oct-07 1:52
George_George22-Oct-07 1:52 
GeneralRe: assert Pin
Stephen Hewitt22-Oct-07 15:36
Stephen Hewitt22-Oct-07 15:36 
AnswerRe: assert Pin
David Crow22-Oct-07 3:45
David Crow22-Oct-07 3:45 
GeneralRe: assert Pin
George_George22-Oct-07 19:26
George_George22-Oct-07 19:26 
GeneralRe: assert Pin
David Crow23-Oct-07 2:55
David Crow23-Oct-07 2:55 
GeneralRe: assert Pin
George_George23-Oct-07 4:41
George_George23-Oct-07 4:41 
AnswerRe: assert Pin
James R. Twine22-Oct-07 5:18
James R. Twine22-Oct-07 5:18 

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.