From: Damphyr Date: 2005-09-25T20:39:24+09:00 Subject: Re: A windows ole question - howto start an external application Nuralanur@aol.com wrote: > thanks for responding. Unfortunately, I am too inexperienced to > follow your guidance (as well as Hal's). I do know however, that I > can't open the file I want and load the program with it, because > that file is just a text file (produced by Ruby , of course) which > is then converted to Maple input format as if it were entered > interactively into a Maple window. > > My question actually is: once I know I know to open external > application XYZ and I know where the executable is and what its > properties are, how do I determine what to tell Ruby to open it > under Windows XP ? Could you give an example with CreateProcess() > that does this ? Does Maple have an OLE API? Yes! It's called openmapple and there are examples on how to use it in C, Java and VB (http://www.maplesoft.com/applications/app_center_view.aspx?AID=1179&CID=5&SCID=57) They need registration to login so I didn't go further, but I am prety sure the VB examples will give you the OLE provider name you need to start the app. Cheers, V.- ____________________________________________________________________ http://www.freemail.gr - ������ �������� ������������ ������������. http://www.freemail.gr - free email service for the Greek-speaking.