Click here to Skip to main content
16,015,666 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL list sort() limit Pin
ZoogieZork11-Dec-03 8:26
ZoogieZork11-Dec-03 8:26 
GeneralInternet Explorer Toolbar Pin
krishnendubagchi@greymatterindia.com11-Dec-03 2:02
krishnendubagchi@greymatterindia.com11-Dec-03 2:02 
GeneralRe: Internet Explorer Toolbar Pin
Michael Dunn11-Dec-03 14:50
sitebuilderMichael Dunn11-Dec-03 14:50 
GeneralUsing Japanese Resources Pin
SanShou10-Dec-03 5:33
SanShou10-Dec-03 5:33 
GeneralWTL 7.1 with VS.NET2003 Support Released Pin
JeremyRemington9-Dec-03 21:10
JeremyRemington9-Dec-03 21:10 
GeneralRe: WTL 7.1 with VS.NET2003 Support Released Pin
Jörgen Sigvardsson10-Dec-03 8:14
Jörgen Sigvardsson10-Dec-03 8:14 
GeneralSTL map. Pin
WREY9-Dec-03 5:11
WREY9-Dec-03 5:11 
GeneralRe: STL map. Pin
ZoogieZork9-Dec-03 6:28
ZoogieZork9-Dec-03 6:28 
WREY wrote:
In VC++ 6, multiple entries into a map with duplicate keys, are accepted.

Could you give a testcase where this happens? The following test program gives the appropriate behavior in VC6:

#include <map>
#include <iostream>
    
using namespace std;
    
typedef map<int,int> items_t;
    
int main(int argc, char* argv[]) {
    
    items_t items;
    
    if (items.insert(items_t::value_type(1,2)).second) {
        cout << "First insert OK!" << endl;
    }
    
    if (items.insert(items_t::value_type(1,3)).second) {
        cout << "Second insert OK (bad!)" << endl;
    }
    
    cout << "Value for key 1: " << items[1];
    
    return 0;
}


- Mike
GeneralRe: STL map. Pin
WREY9-Dec-03 9:40
WREY9-Dec-03 9:40 
GeneralRe: STL map. Pin
ZoogieZork9-Dec-03 11:42
ZoogieZork9-Dec-03 11:42 
GeneralRe: STL map. Pin
Jörgen Sigvardsson17-Dec-03 8:18
Jörgen Sigvardsson17-Dec-03 8:18 
GeneralImplementing a COM interface in ATL Pin
Judah Gabriel Himango8-Dec-03 9:18
sponsorJudah Gabriel Himango8-Dec-03 9:18 
GeneralRe: Implementing a COM interface in ATL Pin
Jörgen Sigvardsson12-Dec-03 8:19
Jörgen Sigvardsson12-Dec-03 8:19 
GeneralPrinting with WebBrowser Control Pin
Jo Fredrickson7-Dec-03 18:10
Jo Fredrickson7-Dec-03 18:10 
GeneralRe: Printing with WebBrowser Control Pin
Kosenko Kolya19-Dec-03 0:57
Kosenko Kolya19-Dec-03 0:57 
GeneralRe: Printing with WebBrowser Control Pin
Jo Fredrickson19-Dec-03 17:07
Jo Fredrickson19-Dec-03 17:07 
GeneralPersisting STL containers to disk Pin
Jeremy Pullicino5-Dec-03 4:38
Jeremy Pullicino5-Dec-03 4:38 
GeneralRe: Persisting STL containers to disk Pin
Todd Smith5-Dec-03 5:03
Todd Smith5-Dec-03 5:03 
GeneralRe: Persisting STL containers to disk Pin
John M. Drescher15-Dec-03 7:01
John M. Drescher15-Dec-03 7:01 
GeneralRe: Persisting STL containers to disk Pin
valikac5-Dec-03 5:36
valikac5-Dec-03 5:36 
GeneralRe: Dynamically adding a ActiveX control as a resource to a project Pin
Abhishek Srivastava5-Dec-03 0:51
Abhishek Srivastava5-Dec-03 0:51 
QuestionDoes WTL supports serialization? Pin
Deepa D1-Dec-03 19:55
Deepa D1-Dec-03 19:55 
AnswerRe: Does WTL supports serialization? Pin
Steve S3-Dec-03 22:21
Steve S3-Dec-03 22:21 
GeneralCMapPtrToPtr Pin
Anthony_Yio1-Dec-03 15:54
Anthony_Yio1-Dec-03 15:54 
GeneralRe: CMapPtrToPtr Pin
John M. Drescher1-Dec-03 16:51
John M. Drescher1-Dec-03 16:51 

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.