Hi David! I tried your suggested solution and ... Voila! It works!.
Thank you very much! Kairit > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:programming- > [EMAIL PROTECTED] On Behalf Of David Mitchell > Sent: Sunday, October 29, 2006 10:11 PM > To: Programming forum > Subject: Re: [Jprogramming] Problem with using dll > > I was able to get beyond the 1 0 error. I used the downloads from > http://www.eki.ee/tarkvara/silbitus/ . I used the following steps: > > 0. Create C:\j601\addons\syllabif. > 1. Unzip http://www.eki.ee/tarkvara/est_morpho_data.zip into it. > 2. Unzip http://www.eki.ee/tarkvara/silbitus/syll_code.zip into it. > 3. Use the following code: > > script_z_ '~system\main\dll.ijs' > > syllabify=: >@{.@('C:\j601\addons\syllabif\syllabif.dll syllabify i i'&cd) > > foo=: 3 : 0 > 1!:44 'C:\j601\addons\syllabif' > syllabify <'This is a test' > ) > > 4. test: > > foo'' > |domain error: cd > | syllabify<'This is a test' > cder'' > 6 0 > > > You will have to adjust this for the correct arguments. > > > Kairit Sirts wrote: > > Strange is that I know that several people have used it in J. But it was > > already some time ago and they also could not imagine what the problem > could > > be. > > > > I also have the source code of that dll in C++. So probably I must try > to > > compile it to dll myself. > > > > Anyway, thanks a lot to everybody who tried to help. > > > > Kairit > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] [mailto:programming- > >> [EMAIL PROTECTED] On Behalf Of bill lam > >> Sent: Sunday, October 29, 2006 5:25 PM > >> To: Programming forum > >> Subject: Re: [Jprogramming] Problem with using dll > >> > >> I guess the message is clear, the problem is not J related. The main > >> reason is > >> LoadLibrary cannot find a dll. Could you run dependency walker again, > >> identify > >> all those non window supplied dlls and put them in the same directory > as > >> syllabif.dll. > >> > >> You mention it run under delphi, so is the dll built using borland > >> compiler? > >> could it be that some borland runtime files are needed? > >> > >> Kairit Sirts wrote: > >>> So. I tried it out and i got the result: > >>> 126 The specified module could not be found. > >>> > >>> I understand that 1!:2&2 [ # 1!:1 <'c:\j601\syllabif.dll' was able to > >> read > >>> the file, so the file definitely is there. > >>> My test Delphi program was able to load and use it, so in general it > is > >> also > >>> usable. > >>> Dll dependencies are also checked, ok with them. > >>> > >>> Are there any other ideas what else to try? Why it cannot be found? > >>> > >>> Kairit > >>> > >>> > >>> > >>>> -----Original Message----- > >>>> From: [EMAIL PROTECTED] [mailto:programming- > >>>> [EMAIL PROTECTED] On Behalf Of bill lam > >>>> Sent: Saturday, October 28, 2006 7:55 PM > >>>> To: Programming forum > >>>> Subject: Re: [Jprogramming] Problem with using dll > >>>> > >>>> Oh sorry! J documentation on DLL said LastError can be retrieved by > >>>> cderx'' > >>>> pls try it instead of calling GetLastError > >>>> > >>>> bill lam wrote: > >>>>> if LoadLibrary return 0 (null handle) then there is error. > >>>>> if GetLastError return 0, I guess the previous error was overwritten > >> by > >>>> J > >>>>> interpreter. Pls debug the same calls using a compiled language eg > C. > >>>>> sorry cannot help in this regard. > >>>>> > >>>>> Kairit Sirts wrote: > >>>>>> Thanks. > >>>>>> I'm not sure if I understood you correctly. > >>>>>> I executed the both rows and they both gave the result 0. Does it > >> mean > >>>> that > >>>>>> there is some error or not? > >>>>>> > >>>> -- > >>>> regards, > >>>> bill > >>>> --------------------------------------------------------------------- > - > >>>> For information about J forums see > http://www.jsoftware.com/forums.htm > >>> ---------------------------------------------------------------------- > >>> For information about J forums see http://www.jsoftware.com/forums.htm > >>> > >>> > >> > >> -- > >> regards, > >> bill > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > David Mitchell > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
