I try to use Microsoft Internet Transfer Control (Inet, as COM component) in my VC application program, but have difficulty to get OpenURL method right. In the wrapping class CInet, this method is defined as:
VARIANT CInet::OpenURL(const VARIANT& URL, const VARIANT& DataType)
How to supply the second parameter? -- I can't find example, and I don't know what "DataType" means.
Note: Please no VB solution; also, CInet::OpenURL seems different from OpenURL in WinInet API (I don't need this).