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
|
Not Categorized, Please Help
|
|