put_Name, how to use it

Top  Previous  Next

If you have the name a wchar_t it seems that you must convert ot to a CComBSTR like this


    CComBSTR bstrName = CString (pszSketchName) ;

    pNewSketch->put_Name (bstrName) ;


If you just use the wchar_t it does not seem to work.



Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)