Error 3132 Ole: Ole has not been initialized
Keywords: OLE Addextender 3132 error OLE not initialized
Question:
I'm getting the error message, "3132 OLE: OLE has not been initialized" when I try to use any of the Addextender functions. What's going on?Answer:
Make sure you're putting quotes around the DLL path and name, as in:Addextender("wwnet32.dll")otherwise WinBatch sees the period, interprets this as an OLE object, and then outputs this cryptic error message.You could also get this same 3132 OLE error with the following code in a DOS batch file, which launches WinBatch with a parameter:
rem DOS Batch file @echo off DIR /b > D.LST START /w WINBATCH.EXE WB.WBT D.LST ;Winbatch wb.wbt file contents: filenum=fileopen(%param1%,read)Putting quotes around the parameter fixed the problem:@echo off DIR /b > D.LST START /w WINBATCH.EXE WB.WBT "D.LST"
Article ID: W12955Filename: 3132 OLE Error.txt