Re: Ver 4.0 call_back question ?
- Posted by mattlewis (admin) Jun 08, 2009
- 915 views
What about all the virtual allocate code that you have added ?
If you know how to do a call_back to Euphoria ver 4 from
machine code could you please give me a working example.
Take a look at fptr. It is able to call and create callbacks for stdcall, cdecl and thiscall (MSVC). Currently, it uses the 3.1.1 includes, but if you replace them with:
include std/machine.e include std/sequence.e include std/dll.e
It should work with eu v4. I just tested with r2143 on Windows XP. It should work on all euphoria platforms (of course, you can't create a DOS callback). I can't say how it plays with DEP, as I've never tried it. I think there's a new 4.0 allocate_code() or something that it should probably use.
The only other thing I can say is that you need to post some code that you think should work, but doesn't.
Matt
PS: In preview, the closing eucode tag is showing.