Re: Modifying the Euphoria interpreter

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

Pete Lomax wrote:
> 
> CChris wrote:
> > 
> > Robert Craig wrote:
> > > 
> > > If you try to *execute* an open_dll under DOS,
> >
> > PS: if indeed mentioning open_dll() will cause ex.exe to error out because
> > it is not supported under DOS32, even though it will never execute the
> > function, then I'll have to use the machine_func() equivalent, that's all
> > it will take I bet. Thanks for pointing this potential problem out.
> 
> I felt Rob was pretty clear on that. An "if platform()=WIN32" wrap around the
> open_dll() call (and etc) should be fine.
> 
> Regards,
> Pete

No, it's even worse than that.
Remember that, if ex.exe tries to compile a program which mentions
open_dll(), it errors out even though the the function won't ever be
executed because the call is protected by a "if platform()=??? then".
The error is generated before the platform dependent code is removed.
But replacing the call with "machine_func(50,"kernel32.dll") won't hurt.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu