Re: Euphoria DLLs

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

Robert Elia wrote:
 > No, I cannot edit the main program because I won't
 > be writing it.  It would be developed separately
 > by any number of persons with whom I have
 > no contact.  The API of my DLL is specified
 > in a published document.  E.G.:
 >
 > C / C++ Prototype
 > extern "C" long WINAPI GetLastError
 > (
 > char *pErrorDescription
 > )
 >
 > 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.

Here's a trick that might work.
Declare the Euphoria routine something like this:

       procedure GetLastError(int pErrorDescription)
            atom p

            p = 0.0 + pErrorDescription

            poke(p, "Error: Just testing" & 0)
       end procedure

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu