Jump to content
Sign in to follow this  
birdofprey

ActiveMovie Window: autoit3.exe - Unable To Locate Component

Recommended Posts

birdofprey

ActiveMovie Window: autoit3.exe - Unable To Locate Component (msgbox title)

This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem.

I keep getting this message every time I start playing a song. It doesn't matter if I use _SoundPlay or CFire's WMMedia.

It started happening after I played around with a ListViewEdit example, that I shaped to my needs, namely, to nothing more than a ...well... get_selected_item's_text_on_dbclick. I'm afraid I have unnecessary code in my script. And I guess the problem was caused by the lack of a DllClose($dll) or something. Reboot won't help.

If I remember right, the only lines I added to my script are:

Local $dll

GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events")

and I included the following from a file:

Edit: Warning, code might be irrelevant, go to the bottom of the topic.

Global Const $DebugIt = 1

Global Const $WM_NOTIFY = 0x004E

Global Const $NM_FIRST = 0
Global Const $NM_CLICK = ($NM_FIRST - 2)
Global Const $NM_DBLCLK = ($NM_FIRST - 3)

Global $ListView = -999
Global $Gui, $editFlag
Global $editCtrl = "Edit1";name of the Edit control that pops up when edit a listitem....

Func ListView_Click()
    ;----------------------------------------------------------------------------------------------
    If $DebugIt Then    
        _DebugPrint ("$NM_CLICK")
;~      _GUICtrlStatusBarSetText($StatusBar, "$NM_CLICK", $SB_SIMPLEID)
    EndIf
    ;----------------------------------------------------------------------------------------------
EndFunc   ;==>ListView_Click

Func ListView_DoubleClick()
    ;----------------------------------------------------------------------------------------------
    If $DebugIt Then    
        _DebugPrint ("$NM_DBLCLK")
;~      _GUICtrlStatusBarSetText($StatusBar, "$NM_DBLCLK", $SB_SIMPLEID)
    EndIf
    ;----------------------------------------------------------------------------------------------
;~  MsgBox(0,"Double Clicked", _GUICtrlListViewGetItemText ($ListView, _GUICtrlListViewGetSelectedIndices($ListView)))
    MoveMedia ($pathlist[$index], $media)
EndFunc   ;==>ListView_DoubleClick

;
; WM_NOTIFY event handler
Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam)
    #forceref $hWndGUI, $MsgID, $wParam
    Local $tagNMHDR, $event, $hwndFrom, $code
    $tagNMHDR = DllStructCreate("int;int;int", $lParam) ;NMHDR (hwndFrom, idFrom, code)
    If @error Then Return
    $event = DllStructGetData($tagNMHDR, 3)
    Select
    Case $wParam = $ListView
        Select
            Case $event = $NM_CLICK
                ListView_Click ()
            Case $event = $NM_DBLCLK
                ListView_DoubleClick ()
            EndSelect
    EndSelect
    ; Proceed the default Autoit3 internal message commands.
    ; You also can complete let the line out.
    ; !!! But only 'Return' (without any value) will not proceed
    ; the default Autoit3-message in the future !!!
    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_Notify_Events

Func _DebugPrint($s_text)
    $s_text = StringReplace($s_text, @LF, @LF & "-->")
    ConsoleWrite("!===========================================================" & @LF & _
            "+===========================================================" & @LF & _
            "-->" & $s_text & @LF & _
            "+===========================================================" & @LF)
EndFunc   ;==>_DebugPrint

Edit: There might be another cause, go here:

http://www.autoitscript.com/forum/index.ph...mp;#entry329110

Oh, and restart does help after all.

Edited by birdofprey

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.