Hello all, This error, still persists:
[ERROR] Error description: Error BASE/3012 Argument error: NEW Args: [ 1] = N 1470288 Stack Calls =========== Called from: => HB_OLEAUTO:NEW(0) Called from: classes\ACTIVEX.PRG => TACTIVEX:NEW(0) Called from: webexp.prg => MAIN(10) [ENDERROR] This is part of the code of ACTIVEX.PRG: [CODE] METHOD New( oWnd, cProgID, nRow, nCol, nWidth, nHeight ) CLASS TActiveX DEFAULT oWnd := GetWndDefault(), nRow := 0, nCol := 0, nWidth := 200,; nHeight := 200 ::nTop = nRow ::nLeft = nCol ::nBottom = nRow + nHeight ::nRight = nCol + nWidth ::oWnd = oWnd ::nId = ::GetNewId() ::nStyle = nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP ) ::cProgID = cProgID ::cString = ActXString( cProgID ) ::Register() if ! Empty( oWnd:hWnd ) ::Create() oWnd:AddControl( Self ) ::hActiveX = CreateActiveX( ::hWnd, cProgID, Self ) ::oOleAuto = TOleauto():New( ActXPdisp( ::hActiveX ) ) && HERE THIS ERROR ::nTop = nRow ::nLeft = nCol ::nWidth = nWidth ::nHeight = nHeight ::ReadTypes() else oWnd:DefControl( Self ) endif return Self [ENDCODE] ...and the sample WEBEXP.PRG [SAMPLE] #include "FiveWin.ch" function Main() local oWnd, oActiveX local cEvents := "" DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" oActiveX = TActiveX():New( oWnd, "Shell.Explorer" ) oWnd:oClient = oActiveX // To fill the entire window surface // oActiveX:Do( "GoHome" ) oActiveX:Do( "Navigate", "http://www.google.com.br" ) oActiveX:SetProp( "StatusBar", .t. ) // MsgInfo( oActiveX:GetProp( "StatusBar" ) ) oActiveX:bOnEvent = { | event, aParams, pParams | cEvents += EventInfo( event, aParams, pParams, oActiveX ) } ACTIVATE WINDOW oWnd ; VALID ( MemoEdit( cEvents ), .t. ) return nil function EventInfo( event, aParams, pParams, oActiveX ) local cMsg := "Event: " + cValToChar( event ) + CRLF local n cMsg += "Params: " + CRLF for n = 1 to Len( aParams ) cMsg += cValToChar( aParams[ n ] ) + CRLF next if event == "BeforeNavigate2" // MsgInfo( aParams[ 2 ] ) // SetEventParam( pParams, 7, .t. ) // Comment this to allow navigation endif return cMsg + CRLF [ENDSAMPLE] I am using harbour 11075 Compiling the example above, using MSVC when this error occurred and always performed well with BCC, is the same error :( How to fix this ? Best Regards, Rossine. -- View this message in context: http://www.nabble.com/Errors-with-11032-tp23521549p23595864.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour