I was not able to get NinjaTrader to recognize JDLLServerLib.dll directly.

I created a simple DLL calling J with JDLLServerLib.dll using MS Visual C# 2010 
Express Beta and put my DLL in the NinjaTrader\Bin\Custom directory.

I then was able to add a reference to my DLL using the NinjaTrader references 
browser.

I was then able to add code calling my DLL in a NinjaTrader User Defined Method 
and to get it to compile without errors.

I haven't figured out how to get the code to function with the NinjaTrader app, 
but this process may be one way to include J code.

--
David Mitchell


On 12/30/2009 7:09, Matthew Brand wrote:
> The error I get says that class object thingy is not "registered". So
> I tried to use "regsvr32" but get the message (which is annoyingly
> displayed in a window whose text cannot be copied, so I have had to
> type out here):
>
> <begin>
> The module "c:\Program Files (x86)\NinjaTrader
> 6.5\bin\Interop.JDLLServerLib.dll" was loaded but the entry-point
> DllRegisterServer was not found.
>
> Make sure that "c:\Program Files (x86)\NinjaTrader
> 6.5\bin\Interop.JDLLServerLib.dll" is a valid DLL or OCX file and then
> try again.
> <end>
>
> Any ideas?
>
>
> Thanks,
> Matthew.
>
>
>
>
> 2009/12/22 Alex Rufon<[email protected]>:
>> I think Matthew encountered a problem with it. I surmise from his reply that 
>> he's using the 64bit version when I asked him about it.
>>
>> Unfortunately, I don’t have 64bit windows machine that I can use to test ...
>>
>>
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf Of bill lam
>> Sent: Monday, December 21, 2009 11:49 AM
>> To: [email protected]
>> Subject: Re: [Jprogramming] C# .NET COM JDLLServer
>>
>> Just curious, does the J64 for x64 work with .net or solve the
>> problem?
>>
>> ĵaŭ, 17 Dec 2009, Alex Rufon skribis:
>>> Hi Matthew,
>>>
>>> I asked the team leader for the project I mentioned and they actually 
>>> solved it two ways:
>>> 1. As suggested, compiled the solution with platform set to x86 instead of 
>>> AllCPU.
>>> 2. Went back to some of the 3rd party suppliers and got versions for the 
>>> 64bit OS. Actually, with this, they eliminated the use of Interopt's.
>>>
>>> I'm a bit embarrassed that my reply is not very useful to your problem.
>>>
>>> r/Alex
>>>
>>> -----Original Message-----
>>> [---=| TOFU protection by t-prot: 289 lines snipped |=---]
>>
>> --
>> regards,
>> ====================================================
>> GPG key 1024D/4434BAB3 2008-08-24
>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to