I think JDLLServerLib.dll is a .NET interop assembly, not a DLL, moreover not a COM DLL. So you don't register it with regsvr23. Try registering j.dll with regsvr32 (or run j.exe self-registering). Then make sure everything can be found (in PATH, in same folder, etc.)
> From: Matthew Brand <[email protected]> > > Thanks, I will give that a go. > > Does anybody have any ideas why NT does not recognise the > JDLLServerLib.dll DLL? Is it a "normal" DLL (whatever that means)? > What is the difference between it and other ones that NT can use (like > the one you can create)? > > > 2009/12/30 David Mitchell : > > 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): > >> > >> > >> 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. > >> > >> > >> Any ideas? > >> > >> > >> Thanks, > >> Matthew. > >> > >> > >> > >> > >> 2009/12/22 Alex Rufon: > >>> 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 > > > > -- > "There is a 75 per cent chance that Al Gore, during the summer months, > could be completely fact-free within five to seven years.” > http://www.youtube.com/watch?v=X-5XwlcBqF0&feature=player_embedded > http://www.youtube.com/watch?v=t8O-E_GN0Kg&feature=player_embedded > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
