On 1/18/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On 1/18/07, John Labenski <[EMAIL PROTECTED]> wrote: > > Humm, that is strange. I just tried in VC 2005 with the default > > include/wx/msw/setup0.h in debug multilib without a problem. The > > changes you made should probably not matter. I have updated the > > bindings files to take into account the wxWidgets wxUSE_DATETIME > > #ifdef for these classes, but that shouldn't matter for you. > > I actually have tried release multilib and release monolithic. It actually > looks like the return type of '__int64' is the problem. Does that need to be > converted to something Lua specific? I am totally guessing and don't quite > understand the ins and outs of the internals of wxLua.
Are you building on a 64 bit machine? The wxFileModificationTime function has been rewritten to return a wxDateTime instead of time_t since lua only has the double number type so a wxDateTime is used to encapsulate it. In wxWidgets 2.8 include/wx/filefn.h we have this WXDLLIMPEXP_BASE time_t wxFileModificationTime(const wxString& filename); and in wxLua/modules/wxbind/src/file.cpp returns = new wxDateTime(wxFileModificationTime(filename)); finally, in include/wx/datetime.h we have inline wxDateTime(time_t timet); I don't understand why it doesn't work, wxFileModificationTime returns time_t and wxDateTime takes time_t so why should it fail? I guess the real problem is that wxFileModificationTime is missing for you. ============================== Could you try to edit wxLua/modules/wxbind/src/file.cpp and test this replacement code or variations of it to force your compiler to recognize wxFileModificationTime? Maybe even try the wxWidgets minimal sample and see if wxFileModificationTime works for you there? returns = new wxDateTime((time_t)wxFileModificationTime(filename)); > I am writing a little wxLuaFreeze utility that will create executables > through a gui interface. I am calling it "wxLuaFreezer". If you are > interested in the script when I am done just let me know. I find it useful > so far but I am not done. I also want it to change the default icon of the > executable with reshacker. That would be interesting, please post some updates as you go. > OK, any other ideas? I would like to use that function at some point. Is it > because wxLua doesn't support that function? See above, but there is no reason why wxLua shouldn't be able to have this work. It's something to do with your compiler or it's settings. Regards, John Labenski ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users