Alex Villacís Lasso wrote:
BTW, I see many attempts of VarAdd(VT_DISPATCH, ...) tested. All of them are expected to fail. However, the tax app does just that (VarAdd(VT_DISPATCH, ...)) and fails to display a print preview because of this. I think that native oleaut32 fails these tests, not because it does not support VarAdd(VT_DISPATCH) at all, but because these VT_DISPATCHs are incorrectly formed (as in, just zeroing the variant, then assigning VT_DISPATCH as variant type). I need to confirm this with a test program.
Yes, if you can improve the variant tests for oleaut32, please do! - Dan