我用了CComDispatchDriver's GetProperty().可以得到数字的值,但不知道如何获得Enum里面定义的字符串
eg.
enum EnumTest{
test0=0,
test1=1,
test2=2
}
EnumTest testValue=test0;当我使用GetProperty()后,我得到的testValue=0,而我还想得到0对应的字符串"test0",不知道如何做?请教高人。
(EnumTest定义在IDispatch借口文件里面,用vb察看属性里面可以看到testValue的值为 "0 - test0",我也想要这种效果)ps:jerry说用GetDocumentation,可是我试过了,得到的是"testValue"。best regards