Share this page

# Example: lrc_DispMethod

This example shows how to use lrc_Dispmethod with optional arguments.

    GUID riid = IID_IDispatch;
    lrc_IOptional_QueryInterface(IOptional_0, &riid,(void**)&IOptional_0, CHECK_HRES);
    VARIANT P1 = lrc_variant_short("47");
    VARIANT P2 = lrc_variant_short("37");
    VARIANT P3 = lrc_variant_date("3/19/1901");
    VARIANT var3 = lrc_variant_scode("4");
    lrc_DispMethod((IDispatch*)IOptional_0, "in_out_optional_args", /*locale*/1024, &P1, &P2, OPTIONAL_ARGS, "#3", &P3, "var3", &var3, LAST_ARG, CHECK_HRES);

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: