1. ewin32api.ew - Error

When I run WIN32 eu programs that use ewin32api.ew I receive an error 
message saying: 

C:\EUPHORIA\include\dll.e:54 in function define_c_func()
Invalid argument type
... called from C:\ewin32api.ew:466 in function link_c_func()

 The interpreter blames dll.e for the error, but there should't ever be 
a problem with include files. I checked the code in dll.e and it seemed 
absolutely fine.
 I've believed the problem to be in ewin32api.ew but checking the code, 
it has no problems in it. From ewin32api.ew:

global function link_c_func(atom dll, sequence name, sequence args, atom 
result)
-- dynamically link a C routine as a Euphoria function
    integer handle

    handle = define_c_func(dll, name, args, result)
    if handle = -1 then
	not_found(name)
    else
	return handle
    end if
end function

 Do you know what's wrong with the program?

Thanks in advance,

Evan Armstrong

new topic     » topic index » view message » categorize

2. Re: ewin32api.ew - Error

----- Original Message ----- 
From: <dragontechnologies at lycos.com>
To: "EUforum" <EUforum at topica.com>
Subject: ewin32api.ew - Error


> 
> 
>  When I run WIN32 eu programs that use ewin32api.ew I receive an error 
> message saying: 
> 
> C:\EUPHORIA\include\dll.e:54 in function define_c_func()
> Invalid argument type
> ... called from C:\ewin32api.ew:466 in function link_c_func()
> 
>  The interpreter blames dll.e for the error, but there should't ever be 
> a problem with include files. I checked the code in dll.e and it seemed 
> absolutely fine.
>  I've believed the problem to be in ewin32api.ew but checking the code, 
> it has no problems in it. From ewin32api.ew:
> 
> global function link_c_func(atom dll, sequence name, sequence args, atom 
> result)
> -- dynamically link a C routine as a Euphoria function
>     integer handle
> 
>     handle = define_c_func(dll, name, args, result)
>     if handle = -1 then
> not_found(name)
>     else
> return handle
>     end if
> end function
> 
>  Do you know what's wrong with the program?
> 

>From the ex.err file, what are the values for 'dll', 'name', 'args', and
>'result' ?
-- 
Derek

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

3. Re: ewin32api.ew - Error

Look for all calls to link_c_func() and link_c_proc() and change any 
{0}'s to {}. Also, do the same for any calls to c_func() and c_proc().

>From: dragontechnologies at lycos.com
>Subject: ewin32api.ew - Error
>
>
>  When I run WIN32 eu programs that use ewin32api.ew I receive an error
>message saying:
>
>C:\EUPHORIA\include\dll.e:54 in function define_c_func()
>Invalid argument type
>... called from C:\ewin32api.ew:466 in function link_c_func()
>
>  The interpreter blames dll.e for the error, but there should't ever be
>a problem with include files. I checked the code in dll.e and it seemed
>absolutely fine.
>  I've believed the problem to be in ewin32api.ew but checking the code,
>it has no problems in it. From ewin32api.ew:
>
>global function link_c_func(atom dll, sequence name, sequence args, atom
>result)
>-- dynamically link a C routine as a Euphoria function
>     integer handle
>
>     handle = define_c_func(dll, name, args, result)
>     if handle = -1 then
>	not_found(name)
>     else
>	return handle
>     end if
>end function
>
>  Do you know what's wrong with the program?
>
>Thanks in advance,
>
>Evan Armstrong
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu