IHTMLDocument2::execCommand Method--------------------------------------------------------------------------------Executes a command on the current document, current selection, or the given range.SyntaxHRESULT execCommand( BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet );cmdID [in] VARIANT of type VT_BSTR that specifies the command to execute. This command can be any of the command identifiers that can be executed in scriptPaste Overwrites the contents of the clipboard on the current selection. pass a BSTR "Paste" as the cmdID
BSTR cmdID,
VARIANT_BOOL showUI,
VARIANT value,
VARIANT_BOOL *pfRet
);cmdID
[in] VARIANT of type VT_BSTR that specifies the command to execute. This command can be any of the command identifiers that can be executed in scriptPaste Overwrites the contents of the clipboard on the current selection. pass a BSTR "Paste" as the cmdID
其中CString怎么转换成VARIANT