Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

VARIANT_BOOL and BOOL

$
0
0

Hi, I wonder what is the difference between VARIANT_BOOL and BOOL, in specific, can I use the following code:

bool CMyDlg::LoadResultXML(CString strXMLPathName)
{

	HRESULT hr = m_plDomDocument.CreateInstance(CLSID_DOMDocument);
	
	if (FAILED(hr))
	{
		_com_error er(hr);
		AfxMessageBox(er.ErrorMessage());
		EndDialog(1);
	}

	_bstr_t bstrXMLPath;
	bstrXMLPath = strXMLPathName.AllocSysString();

        return m_plDomDocument ->load(bstrXMLPath);

}



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>