Share this page

# Example: lrc_DispPropertyPut

This example stores an array in an array property

    VARIANT P1;
    ByteArray array0;
    ByteArray array1 = 0;
    array0 = Create1DByteArray(0, 5);
    Fill1DByteArray(array0, "abcde", 5);
    P1 = lrc_variant_ByteArray_by_ref(array0);
    lrc_DispPropertyPut((IDispatch*)_CoCl1_0, "Arrbyte", /*locale*/1024, &P1, LAST_ARG, CHECK_HRES);
    array1 = lrc_GetByteArray_by_refFromVariant(&P1);
    GetBufferFrom1DByteArray(array1, NULL);        //expected: "abcde"

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: