请问以下函数的参数该如何定义?
void CMSComm::SetOutput(const VARIANT& newValue)
比如说参数为字符串:“123456”
我直接调用SetOutput("123456"),不行呀,编译报错:error C2664: 'SetOutput' : cannot convert parameter 1 from 'char [17]' to 'const struct tagVARIANT &'
Reason: cannot convert from 'char [17]' to 'const struct tagVARIANT'
No constructor could take the source type, or constructor overload resolution was ambiguous