Re: wxEuphoria vs Win32EuLib ?

new topic     » goto parent     » topic index » view thread      » older message » newer message
matt said...
vmars said...

And what would the file extension be for a '.dll/.so' ?

"dll" and "so", respectively. smile Well, Ok, sometimes on windows, you'll get .ocx files, which are ActiveX components, and are really dlls, though they also have to follow some additional conventions.

[/quote]

You need to add in there dylib. For instance, wxEuphoria *should* run on OS X also, no? I can take an unaltered C wxWidgets app and compile/run on Windows, Linux and OS X.

In the past, open_dll would take a lib file to load and would return -1 if it couldn't be loaded. You would then try the next, and next, and next and finally err. However, the new open_dll in 4.0 saves you a lot of work, simply do:

constant hDll = open_dll({ "myfile.dll", "myfile.ocx", "myfile.so", "myfile.so.1", "myfile.so.1.0", "myfile.so.1.0.0", "myfile.dylib" }) 
if hDll = -1 then 
    crash("Could not open myfile shared library.") 
end if 

It will cycle through the list and return the handle to the first one that loads successfully.

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu