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

ATL / WTL / STL

 
AnswerRe: How to do this in WTL Pin
Michael Dunn25-Apr-03 16:52
sitebuilderMichael Dunn25-Apr-03 16:52 
GeneralLike a Toolbar. Pin
Leandro H. Delamare23-Apr-03 6:01
Leandro H. Delamare23-Apr-03 6:01 
GeneralSTL weirdness Pin
#realJSOP21-Apr-03 4:20
professional#realJSOP21-Apr-03 4:20 
GeneralRe: STL weirdness Pin
Joaquín M López Muñoz21-Apr-03 4:53
Joaquín M López Muñoz21-Apr-03 4:53 
GeneralRe: STL weirdness Pin
#realJSOP21-Apr-03 8:08
professional#realJSOP21-Apr-03 8:08 
GeneralRe: STL weirdness Pin
Tim Smith21-Apr-03 8:57
Tim Smith21-Apr-03 8:57 
GeneralRe: STL weirdness Pin
Paul M Watt2-May-03 20:19
mentorPaul M Watt2-May-03 20:19 
GeneralAnother problem with maps Pin
The Unknown20-Apr-03 8:12
The Unknown20-Apr-03 8:12 
I have something to the effect of this:

//Headers files here. All the required ones included<br />
<br />
//String is a modified version of the normal string class<br />
//and variable is custom class to hold several types of data<br />
typedef map<String, variable> list;<br />
list vars;<br />
<br />
class my_class {<br />
public:<br />
  my_class() {}<br />
  void function() {<br />
   vars.insert(pair<String, variable>((String("hi"), variable(6)));<br />
  }<br />
};


This compiles fine; no errors. It runs up until I call my_class.function() tries to insert and then it freezes. However, if I move the move the map declaration into function() and make it local, it runs fine. But doesn't do me any good and I lose the data when the function ends.

Anyone know why this is happening? Is this supposed to happen? Is there a way around it?

Thanks for any help you can give.
GeneralRe: Another problem with maps Pin
Tim Smith20-Apr-03 8:21
Tim Smith20-Apr-03 8:21 
GeneralRe: Another problem with maps Pin
The Unknown20-Apr-03 8:41
The Unknown20-Apr-03 8:41 
GeneralRe: Another problem with maps Pin
Joaquín M López Muñoz20-Apr-03 20:09
Joaquín M López Muñoz20-Apr-03 20:09 
GeneralRe: Another problem with maps Pin
The Unknown21-Apr-03 3:27
The Unknown21-Apr-03 3:27 
GeneralWTL splitters not sending WM_SIZE to both panes Pin
Kibble19-Apr-03 12:20
Kibble19-Apr-03 12:20 
GeneralRe: WTL splitters not sending WM_SIZE to both panes Pin
Kibble21-Apr-03 8:00
Kibble21-Apr-03 8:00 
GeneralDawing image to client device context in ATL Pin
itay_k17-Apr-03 1:11
itay_k17-Apr-03 1:11 
GeneralRe: Dawing image to client device context in ATL Pin
Paolo Messina18-Apr-03 6:14
professionalPaolo Messina18-Apr-03 6:14 
GeneralRe: Dawing image to client device context in ATL Pin
itay_k19-Apr-03 8:30
itay_k19-Apr-03 8:30 
GeneralShowWindow and DoModal Pin
super16-Apr-03 18:45
professionalsuper16-Apr-03 18:45 
GeneralRe: ShowWindow and DoModal Pin
Stephane Rodriguez.16-Apr-03 18:53
Stephane Rodriguez.16-Apr-03 18:53 
Generalproblem with STL map, string (ignore earlier post) Pin
Matthew Fleming15-Apr-03 7:49
Matthew Fleming15-Apr-03 7:49 
GeneralRe: problem with STL map, string (ignore earlier post) Pin
Joaquín M López Muñoz15-Apr-03 8:03
Joaquín M López Muñoz15-Apr-03 8:03 
GeneralRe: problem with STL map, string (ignore earlier post) Pin
Matthew Fleming15-Apr-03 8:13
Matthew Fleming15-Apr-03 8:13 
GeneralRe: problem with STL map, string (ignore earlier post) Pin
Mike Dimmick16-Apr-03 4:17
Mike Dimmick16-Apr-03 4:17 
GeneralRe: problem with STL map, string (ignore earlier post) Pin
Matthew Fleming16-Apr-03 6:30
Matthew Fleming16-Apr-03 6:30 
GeneralRe: problem with STL map, string (ignore earlier post) Pin
Matthew Fleming16-Apr-03 6:32
Matthew Fleming16-Apr-03 6:32 

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.