﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2316	PowerPoint COM event handler initialization error	anonymous	Jon	"I'm getting this error while trying to initialize a com event handler for Office PowerPoint events:[[BR]]


''err.number is: -2147316576
err.windescription: Type mismatch.
''

The code i run is:


{{{
Local $oMyError = ObjEvent(""AutoIt.Error"",""MyErrFunc"") ; Initialize a COM error handler

Local $AppPowerPoint = ObjCreate(""PowerPoint.Application"")

If Not IsObj($AppPowerPoint) Then
	MsgBox(0, ""Error"", ""$AppPowerPoint is not an Object."")
Else
	MsgBox(0, ""Error"", ""Successfully created Object $AppPowerPoint."")
EndIf
   
Local $pptEvt = ObjEvent($AppPowerPoint, ""PowerPointEvent_"") ; Initialize PowerPoint COM event handlers

Func MyErrFunc($oError)
	ConsoleWrite(""err.number is: "" & @TAB & $oError.number & @CRLF & ""err.windescription:"" & @TAB & $oError.windescription & @CRLF)
EndFunc
}}}

The error occurs on the line:[[BR]]
Local $pptEvt = ObjEvent($AppPowerPoint, ""PowerPointEvent_"") ; Initialize PowerPoint COM event handlers[[BR]]
[[BR]]
and happens on Version 3.3.8.1 and 3.3.9.4 (Beta), but not on 3.3.6.1.

Tested on Win8 x64 and Win7 x64

Relevant thread: http://www.autoitscript.com/forum/topic/148251-powerpoint-com-event-handler-initialization-error/

"	Bug	closed	3.3.11.2	AutoIt	3.3.10.2	None	Fixed		
