VARIANT

比较:

 

赋值

VARIANT vaTemp:

vaTemp.vt = VT_BSTR;

vaTemp.bstrval = ::SysAllocString("Hello!");

 

int Value = wcscmp(vaTemp.bstrval , OLESTR("Hello!"));

如果value的值参照:

Value Relationship of string1 to string2

< 0

string1 less than string2

0

string1 identical to string2

> 0

string1 greater than string2

 

 

 

posted on 2009-12-02 21:45  apple0809  阅读(134)  评论(0)    收藏  举报