ewin32api.ew - Error

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

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu