BSTR ConvertStringToBSTR_( BSTR &waarin, const TCHAR* pSrc )
waarin = NULL;
as you can see, I pass in a BSTR... This will need to be freed & reallocated with the one I want... But the first time I encounter this function, my waarin-pointer = 0xcccccccc ... Now I do read somewhere:
0xCC, 0xCCCCCCCC - The /GX Microsoft Visual C++ compiler option initialises all local variables not explicitly initialised by the program. It fills all memory used by these variables with 0xCC, 0xCCCCCCCC.
How can I circumvent this problem? And it is NOT possible to initialize those strings :S (they're defined in a structure which resides inside IDL)