Re: Euphoria DLLs

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Rob, you wrote:

> Juergen Luethje wrote:
>> Ah, it looks as if Topica has fixed the problems ... smile
>
> 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. smile

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     |

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu