strupr((char*)(worksheets.OlePropertyGet("Item",1).OlePropertyGet("Name")))!=strupr("Result")
这条语句为什么会出这样的编译错误"[C++ Error] Unit1.cpp(233): E2031 Cannot cast from 'Variant' to 'char *'",哪位高手能帮我解决呀,不甚感谢。
注:worksheets是excel的worksheets对象