Re: Array from C++ DLL to Euphoria

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

Maybe, shared memory or something like that? Is it possible to see the array is physically located in the DLL? For example, if we get a pointer to it?

You'd still need to peek at that pointer and make a copy of it to see what's inside of it (though not necessarily a copy of the whole thing).

The only way to avoid a peek phase would be if the DLL itself understood Euphoria's datastructures and returned an Euphoria sequence. This would require modifying the DLL itself and it is a fairly advanced technique. The only library off the top of my head that does this is wxEuphoria.

Also, is the C++ DLL returning an arra of primitive datatypes (eg. int[] or char[] or bool[], etc) or an array of C++ objects? Dealing with the latter directly in Euphoria is another can of worms entirely.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu