下面的代碼有效。但是,如果我註釋掉線Dim objRequest As MSXML2.XMLHTTP,並取消對行Dim objRequest As Object失敗,出現錯誤消息: 參數不正確 爲什麼,什麼(如果有的話),我能做些什麼呢? Public Function GetSessionId(strApiId, strUserName, strPassword) As String
所有, 這是我的代碼 //declare string pointer
BSTR markup;
//initialize markup to some well formed XML <-
//declare and initialize XML Document
MSXML2::IXMLDOMDocument2Ptr pXMLDoc;
HRESULT hr;
hr = pXML