On 11/07/14 04:36, Shuai Meng wrote:
used mod other than division when the second argument(length of string) is grater than 256;
Your test was already showing that it doesn't work this way. You will probably need to use MultiByteToWideChar function here.
+ case VT_ARRAY|VT_BYREF|VT_VARIANT: + return DISP_E_TYPEMISMATCH; + default: + hres = to_short(arg + 1, &tmp); There's no need to handle VT_ARRAY|VT_BYREF|VT_VARIANT case separately. It will be done by to_short function.
Thanks, Piotr