Re: "No static 'LoadFromImage' in class 'sfImage'"
Teto <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Once i changed my line by yours,the first error message disappeared
but is replaced by another:
"Attempt to call a nil value"
the while lua script is:
#### BEGIN ####
print("hello");
logo = sfImage();
print("hello");
### end ###
the output on the console is:
"Hello"
"Attempt to call a nil value"
i've tried various things without much success.
thx for your first fast reply.
On Sun, Jul 5, 2009 at 9:14 PM, James Porter<[email protected]> wrote:
>> It compiles fine, launches the following lua script:
>> print 'test'
>> logo = sfImage;
>> logo:LoadFromFile("images/bluecosmos.png");
>
> You want "logo = sfImage()". Right now you're just making an alias of
> the class instead of making an instance of the class.
>
> - Jim
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>
------------------------------------------------------------------------------