Click here to Skip to main content
15,887,999 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to debug an atl project? Pin
sunil.n.cs7-May-09 18:33
sunil.n.cs7-May-09 18:33 
GeneralRe: How to debug an atl project? Pin
Stuart Dootson7-May-09 19:58
professionalStuart Dootson7-May-09 19:58 
Questionsharing standard maps across process boundaries using shared memory concept Pin
Neelesh K J Jain7-May-09 2:08
Neelesh K J Jain7-May-09 2:08 
AnswerRe: sharing standard maps across process boundaries using shared memory concept Pin
Stuart Dootson7-May-09 2:56
professionalStuart Dootson7-May-09 2:56 
GeneralRe: sharing standard maps across process boundaries using shared memory concept Pin
Neelesh K J Jain7-May-09 4:25
Neelesh K J Jain7-May-09 4:25 
GeneralRe: sharing standard maps across process boundaries using shared memory concept Pin
Stuart Dootson7-May-09 4:29
professionalStuart Dootson7-May-09 4:29 
GeneralRe: sharing standard maps across process boundaries using shared memory concept Pin
Neelesh K J Jain7-May-09 21:16
Neelesh K J Jain7-May-09 21:16 
GeneralRe: sharing standard maps across process boundaries using shared memory concept Pin
Stuart Dootson7-May-09 22:38
professionalStuart Dootson7-May-09 22:38 
Neelesh K J Jain wrote:
I am not creating either the key or its value dynamically and as well how its possible to recieve the actual size of the map that is shared from other process using the Named Shared memory


The map definition in Visual Studio's map class is effectively this:

template<class Key, class Value>
class map
{
   _TreeNode<std::pair<Key, Value> >* _Myhead;
   size_type size;
};


_TreeNode is this:

template<class Value>
class _TreeNode
{
   _TreeNode* _Left;
   _TreeNode* _Right;
   _TreeNode* _Parent;
   Value      _Myvalue;
   char _Color;
   char _Isnil;
};


So, you can see that a map object contains only its size and a pointer to the head of the tree it uses to contain its elements. It uses a red-black tree (I think - or it could be an AVL tree?) because that makes it easy to maintain an element ordering.

Does that answer your query?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: sharing standard maps across process boundaries using shared memory concept Pin
Neelesh K J Jain7-May-09 22:45
Neelesh K J Jain7-May-09 22:45 
QuestionATL Composite Control Pin
komofilms776-May-09 20:29
komofilms776-May-09 20:29 
Questioniinternetprotocol Pin
john_36929-Apr-09 4:34
john_36929-Apr-09 4:34 
QuestionHOW to debug ATL dotnet 2008 step by step Pin
john_36929-Apr-09 4:29
john_36929-Apr-09 4:29 
QuestionCopy file to remote host Pin
Jack Rong28-Apr-09 8:44
Jack Rong28-Apr-09 8:44 
AnswerCross Posted Pin
led mike28-Apr-09 8:58
led mike28-Apr-09 8:58 
QuestionNeed a solution. Pin
rana ray26-Apr-09 21:24
rana ray26-Apr-09 21:24 
QuestionInstall ActiveX in non-admin Pin
p_196026-Apr-09 3:35
p_196026-Apr-09 3:35 
AnswerCross Posted Pin
led mike27-Apr-09 4:37
led mike27-Apr-09 4:37 
Questionproblem in porting template class from VS6.0 to VS2008 Pin
Hemant kulkarni25-Apr-09 3:21
Hemant kulkarni25-Apr-09 3:21 
AnswerRe: problem in porting template class from VS6.0 to VS2008 Pin
Stuart Dootson25-Apr-09 3:35
professionalStuart Dootson25-Apr-09 3:35 
QuestionAnother DLL problem. Pin
rana ray24-Apr-09 4:58
rana ray24-Apr-09 4:58 
AnswerRe: Another DLL problem. [modified] Pin
Mark knight12319-Jan-11 23:57
Mark knight12319-Jan-11 23:57 
QuestionCalling a COM DLL(built in visual studio 2008) from a COM DLL VC++ (visual studio 6.0) Pin
rana ray23-Apr-09 5:08
rana ray23-Apr-09 5:08 
AnswerRe: Calling a COM DLL(built in visual studio 2008) from a COM DLL VC++ (visual studio 6.0) Pin
Stuart Dootson23-Apr-09 6:59
professionalStuart Dootson23-Apr-09 6:59 
GeneralRe: Calling a COM DLL(built in visual studio 2008) from a COM DLL VC++ (visual studio 6.0) Pin
rana ray23-Apr-09 19:37
rana ray23-Apr-09 19:37 
GeneralRe: Calling a COM DLL(built in visual studio 2008) from a COM DLL VC++ (visual studio 6.0) Pin
Stuart Dootson23-Apr-09 20:09
professionalStuart Dootson23-Apr-09 20:09 

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.