Hi Mike,

Thanks for the response. I've found a C++ library that would do what I 
wanted to originally do in Java, so I thought it would be a good 
opportunity to spend the weekend learning a new language. I've managed 
to get some core functionality going already, so I'm happy now!

Thanks for the response ,

Regards
Craig

On 1/05/2010 7:12 AM, Mike wrote:
> One way would be to use a COM/Java bridge to expose your Java object as a COM 
> object. There are a number of libraries available, both paid and open source.
>
> The best documented, and offering a free trial, is ComfyJ. But they're not 
> cheap if you decide to buy. http://www.teamdev.com/comfyj/index.jsf
>
> The advantage of using a COM/Java bridge is that you can use the COM object 
> directly within your AFL and pass whatever arrays you need without ever 
> touching C++.
>
> Using a bridge wont perform as well as a C++ plugin. But, in most cases the 
> difference won't matter.
>
> Mike
>
> --- In [email protected], "murphydog001"<cr...@...>  wrote:
>    
>> Hi,
>>
>> I have coded an algorythm in Java that I would like to call from Amibroker.
>>
>> Ideally AB would pass some data (two arrays) to Java, where some work is 
>> done on it and a result is passed back (a boolean value).
>>
>> Is there a simple way to do this? I understand it can be done using C++ and 
>> JavaScript, but I can't seem to find any guidance on doing it in Java.
>>
>> I could write the array to a file, and then read it into my app, but I'd 
>> prefer to do it a bit more elegantly.
>>
>> I'm not particularly experienced with C++, and I'm using some specific 
>> libraries in Java. I'm not a particular whiz with Java either, but 
>> reasonably comfortable.
>>
>> Before I go any further with my java app, is this achievable without 
>> significant effort (ie:would I be better to learn C++ and try to find the 
>> stats libraries I need?)
>>
>>
>> Regards
>> Craig
>>
>>      
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>
>    

Reply via email to