1. It Doesn't work

--------------71C41F1E7C52

i have modified the file but it doesn't work...

--------------71C41F1E7C52
Content-Disposition: inline; filename="prova.exw"

include machine.e
include dll.e
atom kernel, SetEnvironmentVariable
kernel = open_dll("kernel32.dll")
SetEnvironmentVariable = define_c_func(kernel, "SetEnvironmentVariableA",
{C_POINTER, C_POINTER, C_INT},C_INT)
? c_func(SetEnvironmentVariable,
{allocate_string("ciao"),allocate_string("oiac"),0})

--------------71C41F1E7C52--

new topic     » topic index » view message » categorize

2. Re: It Doesn't work

On Wed, 13 Oct 1999 19:17:14 +0100, Flaminio <newpow at TIN.IT> wrote:

>i have modified the file but it doesn't work...
>
>include machine.e
>include dll.e
>atom kernel, SetEnvironmentVariable
>kernel = open_dll("kernel32.dll")
>SetEnvironmentVariable = define_c_func(kernel, "SetEnvironmentVariableA",
{C_POINTER, C_POINTER, C_INT},C_INT)
>? c_func(SetEnvironmentVariable, {allocate_string("ciao"),allocate_string
("oiac"),0})
>

  NO TOO MANY PARAMETERS SHOULD BE:

   define_c_func(kernel,
         "SetEnvironmentVariableA", {C_POINTER, C_POINTER} , C_INT)

Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu