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

C / C++ / MFC

 
QuestionNavigating to a folder using CFileDialog Pin
maycockt11-Jan-10 20:46
maycockt11-Jan-10 20:46 
AnswerRe: Navigating to a folder using CFileDialog Pin
KingsGambit11-Jan-10 21:18
KingsGambit11-Jan-10 21:18 
AnswerRe: Navigating to a folder using CFileDialog Pin
Code-o-mat11-Jan-10 22:08
Code-o-mat11-Jan-10 22:08 
QuestionOracle describe Pin
rdop11-Jan-10 19:45
rdop11-Jan-10 19:45 
AnswerRe: Oracle describe Pin
xushih13-Jan-10 1:08
xushih13-Jan-10 1:08 
QuestionDiference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
Nandu_77b11-Jan-10 19:26
Nandu_77b11-Jan-10 19:26 
AnswerRe: Diference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
_AnsHUMAN_ 11-Jan-10 19:32
_AnsHUMAN_ 11-Jan-10 19:32 
GeneralRe: Diference between hash_map and hash_multi map. how to implement hash_multimap in VS2008 (for C++) Pin
Nandu_77b12-Jan-10 0:21
Nandu_77b12-Jan-10 0:21 
1) I tried the below and got the error:
ommb.h(398) : error C2065: 'hash' : undeclared identifier

#include <hash_map>
#include //maha
using namespace std; //maha
using namespace stdext; //maha

struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return strcmp(s1, s2) == 0;
}
};

typedef hash_multimap<const char*,="" int,="" hash<const="" char*="">, eqstr> map_type;

void lookup(const map_type& Map, const char* str)
{
cout << str << ": ";
pair<map_type::const_iterator, map_type::const_iterator=""> p =
Map.equal_range(str);
for (map_type::const_iterator i = p.first; i != p.second; ++i)
cout << (*i).second << " ";
cout << endl;
}


2) then i tried changing the type def to
typedef hash_multimap <const char*,="" ccommnode*,="" eqstr=""> test; and below is the error:

error C2903: 'rebind' : symbol is neither a class template nor a function template
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xhash(148) : see reference to class template instantiation 'stdext::_Hmap_traits<_Kty,_Ty,_Tr,_Alloc,_Mfl>' being compiled
with
[
_Kty=const char *,
_Ty=CCommNode *,
_Tr=functorHashString,
_Alloc=functorEqualStrings,
_Mfl=true
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\hash_map(182) : see reference to class template instantiation 'stdext::_Hash<_Traits>' being compiled
with
[
_Traits=stdext::_Hmap_traits<const char="" *,ccommnode="" *,functorhashstring,functorequalstrings,true="">


Can any please help me where i am going wrong.

Thanks,
Nandu
QuestionSplit header in clistcontrol Pin
itkid11-Jan-10 19:25
itkid11-Jan-10 19:25 
AnswerRe: Split header in clistcontrol Pin
Rolf Kristensen13-Jan-10 11:52
Rolf Kristensen13-Jan-10 11:52 
QuestionConnectivity with data base Pin
Le@rner11-Jan-10 19:03
Le@rner11-Jan-10 19:03 
AnswerRe: Connectivity with data base Pin
SandipG 11-Jan-10 20:17
SandipG 11-Jan-10 20:17 
AnswerRe: Connectivity with data base Pin
KingsGambit11-Jan-10 20:44
KingsGambit11-Jan-10 20:44 
QuestionMFC - CAsyncSocket class Pin
liz311-Jan-10 17:31
liz311-Jan-10 17:31 
AnswerRe: MFC - CAsyncSocket class Pin
Naveen11-Jan-10 18:39
Naveen11-Jan-10 18:39 
AnswerRe: MFC - CAsyncSocket class Pin
Cool_Dev11-Jan-10 19:21
Cool_Dev11-Jan-10 19:21 
GeneralRe: MFC - CAsyncSocket class Pin
liz311-Jan-10 21:56
liz311-Jan-10 21:56 
GeneralRe: MFC - CAsyncSocket class Pin
Moak11-Jan-10 22:37
Moak11-Jan-10 22:37 
GeneralRe: MFC - CAsyncSocket class Pin
liz312-Jan-10 19:03
liz312-Jan-10 19:03 
QuestionC++ CODE FOR VENDING MACHINE Pin
queenzz11-Jan-10 16:19
queenzz11-Jan-10 16:19 
AnswerRe: C++ CODE FOR VENDING MACHINE Pin
Richard MacCutchan12-Jan-10 0:45
mveRichard MacCutchan12-Jan-10 0:45 
QuestionRe: C++ CODE FOR VENDING MACHINE Pin
David Crow12-Jan-10 3:14
David Crow12-Jan-10 3:14 
QuestionDetecting whether a modal dialog has displayed Pin
Kenneth Ballard11-Jan-10 13:52
Kenneth Ballard11-Jan-10 13:52 
AnswerRe: Detecting whether a modal dialog has displayed Pin
KingsGambit11-Jan-10 19:02
KingsGambit11-Jan-10 19:02 
GeneralRe: Detecting whether a modal dialog has displayed Pin
Kenneth Ballard12-Jan-10 5:04
Kenneth Ballard12-Jan-10 5:04 

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.