On Thu, 24 Jul 2003 17:25:28 +0100, "Max Adams"

>The function prototype I am trying to pass this CArray to is:
>BOOL FunctionName(CString strMsg, CArray >COMPONENT_DETAILS&> aDest, CListBox cDest);

Don't pass object types by value. Pass them by const reference instead,
if you don't want to modify their contents. Otherwise, your program
will have to unnecessarily copy-construct and destruct each of the above
parameters every single time your function is executed.