- Code: Select all Expand view
FUNCTION Test
Local oHttp:=TIpClientHttp():new("https://www.testsource.com/1", .F. )
Local cXml := '<request>'+hB_osnewline()+;
' <newdata>' + cData ;
' </request>'+hB_osnewline()
Local cRet
LOCAL oXmlDoc := TXmlDocument():new( )
LOCAL oXmlNode, oXmlRecScan, oXmlFieldScan
iDLL := LoadLibrary( "wininet.dll" )
IF .NOT. oHttp:open()
MsgAlert( "Connection error:", oHttp:lastErrorMessage( ) )
RETURN
ENDIF
oHttp:Post( cXml)
cRet := oHttp:readAll( )
oHttp:close()
RETURN NIL
When using xBuild ( xHarbour ) this is working fine. The problem is with FWH 16.03, Harbour ( built for that FWH version ), and MSVC++ 2015. I get the following error:
Error description: Error BASE/1081 Operation not supported: TIPCLIENTHTTP:new()
The last two calls are from httpcli and client .prg's which are located in the tip libraries.
Called from: client.prg => TIPCLIENT:NEW( 225 )
Called from: httpcli.prg => TIPCLIENTHTTP:NEW( 96 )
There is no client.prg in my code so no possibility of it being misdirected. I'm thinking there is a library that is not being added to the build. As I said, it works fine with xHarbour, but we want to get it working with Harbour and MSVC 2015.
Your ideas about what I can do to resolve this error are greatly appreciated.
Tim