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
