Description:
Microsoft Visual C newsgroup.
|
|
|
using std::find() on std::string vectors
|
| |
Hello All, I have a question on the use of std::find() on a vector that contains std::string objects. When I need to do a search on a vector of strings, I currently use the std::find() algorithm, e.g. : std::vector<std::string>::iter ator theIterator; theIterator = std::find ( vecStrings.begin(),... more »
|
|
Dll function with STL obj. as parameter call crach
|
| |
Hello. The application call function (with STL string object as parameter) from dll. If dll compiled in different mode (release/debug) than application we see this crash. We use Visual Studio 2008 (Windows Mobile 5.0 Pocket PC SDK (ARMV4I) The foolowing code of application: typedef int (*GETINIFILEIMPL)(const std::wstring& wstrIniFileName);... more »
|
|
unique value for map
|
| |
std::map allows to insert unique values(key), is there any other data tyep which allows same. can u use map in a link list, when allocate memory to link list i can insert some values in map
|
|
PERFORMANCE IN VISUAL STUDIO 2008 + STL.
|
| |
Hi Group, We recently migrated our project from VS 2003 to VS 2005 and found that our runtime performance in release mode has degraded by a factor of 3. On investigation we found that it was due to stl in VS 2005. Building with STLPort confirmed this. As of now we are not in a position to migrate to... more »
|
|
STL container performance
|
| |
I am suffering performance problems with the STL implementation in Microsoft Visual Studio 2005. There are indications that it is down to either memory management or some locking contention. As an example, the WordCount sample at [link] running on a 100Mb text file executes in 1 minute 39 seconds when... more »
|
|
wcout, VS2008 and UTF-16
|
| |
Greetings. I'm am currently trying to output wchar_t (== UTF-16) to the windows console. (The console can display UTF_16 just fine if you change the font to lucida console - easiest verified with adding a filename with some greek or cyrillic characters in it and calling dir) Now, my problem is, that the default wcout stream on windows will... more »
|
|
MS09-035 breaks the std::vector template class
|
| |
I was wondering if anyone else has the same problem after installing the patch to Visual Studio 2008 SP1 that fixes the ATL security problem discussed in KB971092. After installing this patch, we receive the following errors when trying to build a project that uses the std::vector template class:... more »
|
|
Memory allocation of std::list
|
| |
struct Item { int *pPtr; std::list<int*> intList; ...Item *pItem = new Item[1700000]; I expected the memory usage would be (sizeof(Item) * 1700000) + (the head pointer of list * 1700000), ie. (28+12)*1700000 = ~64MB, but the outcome is about 170MB. Would you tell me why is it so? I asked this question in the MSDN forums and someone answered me "You should... more »
|
|
Make copy of input stream
|
| |
Is it possible to make a copy of an input stream? I would like to make a copy of an input stream which uses the same buffer as the original but has its own position and state which are initialized to the original stream's position and state. I am not seeing this in Josuttis but wanted to ask in case I am missing something.... more »
|
|
|