Good day, Rick,

thanks for the kind sharing!

that seems to hit the right spot... I will give it a try and post the
findings when I am through with it.

Best Regards.


On Mon, Jul 14, 2014 at 9:01 PM, Rick McGuire <[email protected]> wrote:

> Assuming I understand what you're really asking, this is definitely
> doable.  Here's a small example showing how to invoke an ooRexx program.
>
>
> https://sourceforge.net/p/oorexx/code-0/HEAD/tree/main/trunk/utilities/rexx/platform/unix/rexx.cpp
>
> This actually uses two different methods, the older RexxStart() API and
> the newer object oriented interfaces. I suspect you'll want to use the
> newer APIs.  For your application, it should be possible to create a single
> interpreter instance and reuse that instance to run your code snippets.
>  This example uses the CallProgram() API which reads the code from a file.
>  You can also use NewRoutine() to create a Routine object without using a
> file and then use CallRoutine() to invoke the code.  Note that if you go
> this route, once the call completes you'll want to use
> ReleaseLocalReference() to let the garbage collector know you're done with
> this object.  If you don't, all of the code snippets you execute will
> accumulate in memory until you app quits.
>
> Rick
>
>
> On Mon, Jul 14, 2014 at 6:30 AM, CheeKiang Goh <[email protected]>
> wrote:
>
>> Good day, Michael,
>>
>> thanks for your kind inputs.
>>
>> Yes, I am interested to do the later case, where OOREX is integrated in
>> the c++ application. and yeah... that is how I like to make this... nice to
>> work with...
>>
>> Ok.. my issue when I read the chapter on the API .... is after reading...
>> I still do not know what to do  :P ... will try harder naturally ...
>> definitely appreciate any pointers to jump-start me :>
>>
>> Best Regards
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Jul 14, 2014 at 10:55 AM, CheeKiang Goh <
>> [email protected]> wrote:
>>
>>> Good day, Dan,
>>>
>>> Appreciate your quick reply.
>>>
>>> Conceptually you are right ... I am looking for a tryREXX equivalent
>>> based on the C++ API of ooREXX.
>>>
>>> I think tryREXX is in REXX though  (I hope I look @ the right thing
>>> though... is it the one @ %install_dir%ooREXX/rexxtry.rexx ... ? )...
>>>
>>> (BTW... I tried that ... and it seems to be able to handle only
>>> single-line codes trials... if I try entering multiple lines sequence (e.g.
>>> do ... end over several lines) the interpretation seems to not work
>>> proper... )
>>>
>>> thanks very much for your valuable time!
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 14, 2014 at 10:18 AM, Dan Carter <[email protected]>
>>> wrote:
>>>
>>>> There may already be an answer for this. We have a line-by-line
>>>> interactive interpreter named TryRexx.    BTW, what is QT?
>>>>
>>>>
>>>>
>>>> *From:* CheeKiang Goh [mailto:[email protected]]
>>>> *Sent:* Sunday, July 13, 2014 20:10
>>>> *To:* [email protected]
>>>> *Subject:* [Oorexx-devel] OOREXX and QT 5.3.1
>>>>
>>>>
>>>>
>>>> Good day, all,
>>>>
>>>>
>>>>
>>>> has been a user of REXX on ZoC for quite a while and felt like doing a
>>>> simple QT GUI application incorporating REXX scripting in a console window.
>>>> (OK... geeky hobby... I know)
>>>>
>>>>
>>>>
>>>> The idea I have is (very crudely) a UI widget, which can throw a string
>>>> @ the REXX interpreter to do line by line interpretation. In return I am
>>>> hoping to get a signal from the interpreter when it is done interpreting
>>>> the line, also the result in a string. and this should be interactive as
>>>> wanted a REXX console in QT UI.
>>>>
>>>>
>>>>
>>>> Been searching the web for such examples but obviously fail to find.
>>>>
>>>>
>>>>
>>>> So... I have this wacky idea of making such a REXX console widget for
>>>> QT (also to help me learn QT and OOREXX)
>>>>
>>>>
>>>>
>>>> I have chosen OOREXX as the C++ API looks more complete. I know OOREXX
>>>> can do UI... I just wanted to make it more simple to use as a class object
>>>> for QT with minimal dependencies... also looked at the examples which comes
>>>> with the installation... it just do not look like something which fits what
>>>> I wanted.
>>>>
>>>>
>>>>
>>>> But I am quite a NOOB handling OOREXX integration and as such,
>>>> sincerely seeking your kind advice for suggestions/resources/(better yet...
>>>> examples) for my experimentation.
>>>>
>>>>
>>>>
>>>> thanks very much.
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Want fast and easy access to all the code in your enterprise? Index and
>>>> search up to 200,000 lines of code with a free copy of Black Duck&#174;
>>>> Code Sight&#153; - the same software that powers the world's largest
>>>> code
>>>> search on Ohloh, the Black Duck Open Hub! Try it now.
>>>> http://p.sf.net/sfu/bds
>>>> _______________________________________________
>>>> Oorexx-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>>>
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck&#174;
>> Code Sight&#153; - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>> _______________________________________________
>> Oorexx-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>>
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck&#174;
> Code Sight&#153; - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to