Hi,
I've found that there are only two small problems with wxLua builds with BCC: I've already solved one.

The next is something which I tried but failed to fix: on some autogenerated binding files, e.g. modules/wxbind/src/file.cpp, line 2002 there are ?: operators in form:

wxString filespec = (argCount >= 3 ? lua2wx(wxlState.GetStringType(3)) : wxT(""))

unfortunately borland gives an error for this saying that both returned variables of ?: operator must be of the same type. I.e. it doesn't like that wxT(""). Changing it to wxString(wxT("")) or to wxString(wxEmptyString) fixes the problem (not changing it to wxEmptyString, though).

I've tried to scan all code of the wrapper and I've found that at line 3297 of genwxbind.lua there is:

table.insert(codeList, " "..declare.." "..argName.." = (argCount >= "..argNum.." ? "..argItem.." : "..opt..");\n")

however putting a

if opt=="wxT(\"\")" then
        opt = "wxString(wxEmptyString)"
end

just before it does not produce any change. In fact I've hacked it a little more and I believe that the problem is not there as that lines correctly generates the wxString(wxEmptyString) code.

Anyone which is more experienced with genwxbind.lua knows if there is something like a filter for replacing wxString(wxEmptyString) -> wxT("") ?

Thanks,
Francesco



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to