Searching in SDK
-
I have bulk of data . I want to find a specific data from the bulk and doing some calculation on the data. i should not use STL Object(Map) or MFC:((. It should be a pure SDK. Can u suggest any build in functionality for this :confused:? Thanks in advance g.shadrach
With limited information from you, probably a linked list or an array (probably array of pointers) can be used to do it.
-Prakash
-
I have bulk of data . I want to find a specific data from the bulk and doing some calculation on the data. i should not use STL Object(Map) or MFC:((. It should be a pure SDK. Can u suggest any build in functionality for this :confused:? Thanks in advance g.shadrach
sorry, but STL is fully portable, because provided with the C++ language. it's not a Microsoft product :~
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
sorry, but STL is fully portable, because provided with the C++ language. it's not a Microsoft product :~
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
Hi I used the STL for my work , some time it throw exception while searching (map.find()). My project is a multithreaded. Each thread had it’s own map.
-
Hi I used the STL for my work , some time it throw exception while searching (map.find()). My project is a multithreaded. Each thread had it’s own map.
were you using STL's std::map<> or MFC's CMap ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
were you using STL's std::map<> or MFC's CMap ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
STL's std::map<> Not MFC's CMap eg. map mapclass; mapclass mapobj; char searchkey[100]={0}; strcpy(searchkey,"somekey") try { mapobj.find(searchkey); } catch(...) { exception occurred ! } note : mostly occurred in Destructor of string class
-
STL's std::map<> Not MFC's CMap eg. map mapclass; mapclass mapobj; char searchkey[100]={0}; strcpy(searchkey,"somekey") try { mapobj.find(searchkey); } catch(...) { exception occurred ! } note : mostly occurred in Destructor of string class
and what kind of exception were thrown ? what were you doing ? [EDIT] Do you build your project with mutithreaded DLL (/MD or /MDd) ? [/EDIT]
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
and what kind of exception were thrown ? what were you doing ? [EDIT] Do you build your project with mutithreaded DLL (/MD or /MDd) ? [/EDIT]
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
STL's std::map<> Not MFC's CMap eg. map mapclass; mapclass mapobj; key[100]={0}; strcpy(ken,"somekey"); ------------ ------------ ------------ ------------ ------------ ------------ char searchkey[100]={0}; strcpy(searchkey,"somekey") try { mapobj.find(searchkey); } catch(...) { exception occurred ! } note : mostly occurred in Destructor of string class
-
and what kind of exception were thrown ? what were you doing ? [EDIT] Do you build your project with mutithreaded DLL (/MD or /MDd) ? [/EDIT]
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
hi my application is not dll. it is exe. but i didnot set multithread:sigh:
-
With limited information from you, probably a linked list or an array (probably array of pointers) can be used to do it.
-Prakash
Mr.Prakash wrote:
probably a linked list
probably linked list is very slow at searching in compare to other datastructure
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Hi I used the STL for my work , some time it throw exception while searching (map.find()). My project is a multithreaded. Each thread had it’s own map.
shadrach_india wrote:
...some time it throw exception while searching (map.find()).
So it threw an exception because you did something wrong, and now you are afraid to use it again. Where's the logic in that?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb