On 6/23/06, Steve Kieu <[EMAIL PROTECTED]> wrote:
> > not depend on lua50.dll . But it is not right, it still requires lua50.dll
> > which might be incompatible with wxLua. My question is why and is there
> any
> > problem with it apart from I have to bring lua50.dll while I have already
> > lua interpreter in my app.
>
> I don't know? Does the linker tell you about unresolved symbols and
> their names? Can you just link directly to luasocket if you compile it
> To compile the tird party lib, yes vc7 complains unresolve symbol if I do
> not suppliy the lua50.lib in the input field.
>
> I think all strange things of my apps in win32 is from that reason.
> Inconsistency in lua state because of the binary third party lib. Just like
> round problem, you need lua50.lib to compile the lib and at runtime it
> requiers lua50.dll and your own has another lua state.

Good to know.

>  I just remove all third party libs, integrate it into the project as a cpp
> source file and use lua C API ..., remove luasql etc..
>
> And everything works stable as expected. I do not need to link stc lib any
> more in win98 to avoice memory allocation error ; win2k is stable again .

Ok... maybe this "problem" will make itself known somehow.

> BY the way, I noticed the latest version of wxLua, the lua_PushLString()
> signature changes (from wxString ); what reason? I found using wxString is
> easier as we are doing in in wxWidget then...

Oh, I thought that since lua_PushString can take either a const char*
or wxString that would be suitable. If you want to use lua_PushLString
for a wxString, eg. you want to only use part of the string, just use
lua_PushString( wxstr.Mid(0, len) ); since it's safer than doing the
below since Mid will check the lengths for us.

wxString a(wxT("Hello"));
lua_pushlstring(wx2lua(a), 20); <-- whoops!


Regards,
    John Labenski



> Cheers,
>
>
>
> as a lib as well?
>
> > Adding the lua addon files to my project and directly link to my app is
> one
> > solution but luasocket is rather complex pack.
> >
> > What I would like to do is to compile third party addon lib but not depend
> > on lua50.dll when I have wxLua ; how can I do this?
>
> I don't think you can use the dll with a project like wxLua that has
> already linked with the exact same .lib, but I could be wrong. Perhaps
> since the luasocket is trying to open the lua dll it will resolve the
> names of the functions it needs soley from within the dll, if so it
> should work? In any case trying to mix and match lua versions will
> never work. The 2.6.2 wxLua uses a fairly vanilla 5.0.2, the changes
> made for wxLua should not affect the normal operation of the
> lua_State.
>
> IIRC you wanted to stay with 5.0, but if you use wxLua from CVS or a
> snapshot you can use wxLua as a dll as well, but it's lua 5.1.
>
> Good luck,
>  John Labenski
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wxlua-users mailing list
> Wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
>
>
> S.KIEU
>
>  ________________________________
> Do you Yahoo!?
>  Yahoo! Music: Check out the gig guide for live music in your area
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> _______________________________________________
> Wxlua-users mailing list
> Wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
>
>

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to