myMap[n1] = n2; SHOULD work, ie create an entry if it does not already exit n2 = myMap[n1]; SHOULD NOT work, it should create an entry if it does not exist and give n2 its value.
M
Marc Britten
@Marc Britten
Posts
-
map object in STL -
Bit by activation - (warning, rant!)that sux, i got a card with numbers for both Home and Pro
-
Passing a COM interface to an out of process COM objectpass it as an IUnknown* then queryinterface for IMyObject when you get it.
-
I don't want message boxes to beepwhy don't you just use the control pannel to turn off sounds for certian notification types? or all of em
-
CXross-platfom development vs platform-centricThere are several crossplatform tools that I use that don't seem to have any aditional problems. Checkout WinCVS which has a Mac and Linux port, its a very complex system that works well on many platforms. the key(if your not using some special toolkit that helps) is to simply abstract anything that is platform dependant. so you have all the gui stuff in one interface and you rewrite the interface for the platform. its not as hard as some people make it seem if you do it well.