Truckle, Andrew J wrote: > Well, it actually seems I don't have to. I just pass the & of the CComBSTR > and it works fine....
Maybe it just *seems to*. If the method returns an array, and you pass the address of a CComBSTR object to it, then definitely you're causing a buffer overrun, which is one of the most deadly sins of a programmer! See, the address of a CComBSTR object has place only for one object. -- Ehsan Akhgari Farda Technology <http://www.farda-tech.com/> "Everything should be made as simple as possible, but not simpler." -- Albert Einstein _______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
