Re: Euphoria DLLs
- Posted by Juergen Luethje <j.lue at gmx.de> Apr 26, 2003
- 489 views
Hello Rob, you wrote: > Juergen Luethje wrote: >> Ah, it looks as if Topica has fixed the problems ... > > I think Topica is still screwed up, but ListFilter > is inserting an extra empty blank line at the start of each > EUforum message body. That seems to fix the problem. Thank you, I appreciate it. [...] >> Robert Elia had written previously: >> >>| The calling program is required to allocate a buffer and pass a pointer >>| to the function in the DLL. The DLL must then poke a string into the >>| buffer. >> >> Robert Craig replied: >> >>> procedure GetLastError(integer pErrorDescription) >>> >>> In my example, it's important that you declare the parameter as >>> integer and not atom. >> >> >> Then Robert Elia must write in the documentation of the API of his DLL, >> that the pointer can only have a value in the 31-bit range, right? > > No, that's the point of the trick. > I believe by doing this little (untested) trick of adding 0.0, > he will be able to handle 32-bit pointers and other values, > reliably. The documentation for his .dll needn't > say anything about 31 vs 32 bits. Grmpf... I had forgotten, that the translator doesn't type-check parameter values. But now the penny has dropped. Thanks, and best regards, Juergen -- /"\ ASCII ribbon campain | while not asleep do \ / against HTML in | sheep += 1 X e-mail and news, | end while / \ and unneeded MIME |