how to get the VARIANT type URL as a CString from OnDocumentComplete in webbrowser2
how to get the VARIANT type URL as a CString from OnDocumentComplete in webbrowser2
Code:
void MyDialog::OnDocumentCompleteExplorer1(LPDISPATCH pDisp, VARIANT FAR* URL)
{
}
"URL" here contains the url that has been completed. but it is a variant type. i want to as a CString type so that i can check it. i tried casting but it doesnt work. does anyone knows how to do it?
- MFC style
- winxp
- vc6.0
thanks in advance!