[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem using loadlib
- From: David Burgess <dburgess@...>
- Date: Thu, 10 Nov 2005 02:56:37 +1100
Assuming windows
Depending on your windows version you might try:
local f = loadlib("mylib","mylib_open")
Both the form that you have used and the one above work for me when
the dll is in the stock windows search path.
My bet is that the entry point name is wrong.
Try
>print(loadlib("mylib","mylib_open"))
at the lua prompt to see the error messages
David B.
On 11/9/05, Jose Marin <jose_marin2@yahoo.com.br> wrote:
> Hi.
>
> I'm not able to use loadlib using only the name of the
> dll:
> local f = loadlib("mylib.dll","mylib_open")
> f()
>
> If I include the full path, it works:
> local f =
> loadlib("c:\\mylibpath\\mylib.dll","mylib_open")
> f()
>
> It's the correct behavior?
>
>
>
>
>
>
>
>
>
>
> _______________________________________________________
> Yahoo! Acesso Grátis: Internet rápida e grátis.
> Instale o discador agora!
> http://br.acesso.yahoo.com/
>
>