{{tag>category:"OpenInsight" author:"Rick Todd" author:"[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]" author:"Oystein Reigem"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== OIPI Error (OpenInsight) ==== === At 06 SEP 2001 11:38:00AM Rick Todd wrote: === I'm attempting to use OIPI. Downloaded and Installed OIPI v4.01. Created a test form and on the a test button click event I put this code; DECLARE FUNCTION SET_PRINTER $INSERT OIPRINT_EQUATES P=SET_PRINTER("INIT") P=SET_PRINTER("TEXT","TEST") P=SET_PRINTER("TERM") RETURN 0 When I click on the button I get the error message; SYS1000: Error loading program "REGISTERWINDOWMESSAGE" I inserted the DEBUG and found that P is unassigned and it stops at the SET_PRINTER("INIT") statement. I decided that maybe the install process was messed up, so I reinstalled the OIPI v4.01 and retried. But received the same error. I thought that I would take it one step further. Maybe OI is messed up. So, I backed-up my application. Reinstalled OI and OIPI and tried again. Same error. I thought that maybe my syntax it off so I cut and pasted OIPI_EXAMPLE1 onto a button omitting the SUBROUTINE statement and received the same error. I've looked through the documents and found one mentioning the same error. And it talked about looking in the SYSPROCS for DLL_OIPI_USER, which I have and it does exist. So I don't know what else to try. Any suggestions? Thanks Rick ---- === At 06 SEP 2001 12:48PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: === [notag]Try the following from the exec line in the system editor Run Declare_Fcns "DLL_OIPI_KERNEL" Run Declare_Fcns "DLL_OIPI_USER" and see if that helps. [The Sprezzatura Group] [World Leaders in all things RevSoft] [] [] [
] [/notag]
---- === At 06 SEP 2001 02:21PM Rick Todd wrote: === Thanks, that seems to have solved the problem Rick ---- === At 06 SEP 2001 05:05PM Oystein Reigem wrote: === Rick, Your problem had to do with two DLLs - files with functions external to OI - that OIPI needs to use. Those two Declare_Fcns things Sprezzatura made you run sort of set up the connection between OI and those DLL functions. That's something the OIPI installation [i]should[/i] have done but didn't do. - Oystein - [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=C133189F9206A10E85256ABF0055E0B1|View this thread on the Works forum...]]