"You must make several entries in the registry in support of
LocalService. First, add the clsid subkey of the component to
\HKEY_CLASSES_ROOT\CLSID. Attach an AppID named value to the clsid
subkey. The text value should be the clsid of the component. Also,
insert a clsid subkey at \HKEY_CLASSES_ROOT\AppID."
http://msdn.microsoft.com/en-us/library/ms809975.aspx
In my registery there is no AppID entry for
21EB05EA-1AB3-11CF-A2AC-8FF70874C460 (the JDLLServer) but there is an
entry in \HKEY_CLASSES_ROOT\CLSID. I did not write the field values
here because there are lots of them but can do if it would be useful.
Could the missing AppID entry be the cause of my problems? I don't
want to try to add one at this stage because I don't know what I am
doing :-).
Additionaly there are two entries in HKEY_LOCAL_MACHINE:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JDLLServer
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JDLLServer.3
With fields:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JDLLServer
\ClSID =
Name = (Default),
Type = RWG_SZ,
Data = {21EB05EA-1AB3-11CF-A2AC-8FF70874C460}
\CurVer =
Name = (Default),
Type = RWG_SZ,
Data = JDLLServer.3
\NotInsertable =
Name = (Default),
Type = RWG_SZ,
Data = (value not set)
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JDLLServer.3
\ClSID =
Name = (Default),
Type = RWG_SZ,
Data = {21EB05EA-1AB3-11CF-A2AC-8FF70874C460}
\NotInsertable =
Name = (Default),
Type = RWG_SZ,
Data = (value not set)
Thanks,
Matthew.
2009/12/31 Oleg Kobchenko <[email protected]>:
> CLSID is Class ID. It how a COM component is registered
> in the registry. Open regedit and find HKLM ... CLSID ...
> and the GUID ({...}) below; then open the values under it.
> It should point to a DLL path.
>
> See also thinks like
>
> Creating and Registering COM Components
> http://msdn.microsoft.com/en-us/library/ms809975.aspx
>
> http://en.wikipedia.org/wiki/Component_Object_Model#Technical_details
>
>
>
>
>
>> From: Matthew Brand <[email protected]>
>>
>> Registered j.dll but it still fails.
>>
>> I get an error:
>> 30/12/2009 17:26:57,Strategy,Error on calling 'OnBarUpdate' method for
>> strategy 'JayServerExample': Retrieving the COM class factory for
>> component with CLSID {21EB05EA-1AB3-11CF-A2AC-8FF70874C460} failed due
>> to the following error: 80040154.,
>>
>> Does anybody know how I can find out what CLSID refers to and how I
>> can tell C# where that thing is?
>>
>>
>>
>> 2009/12/30 Oleg Kobchenko :
>> > 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
>> >>
>> >> 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
>>
>>
>>
>> --
>> "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
--
"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