I downloaded the packages for IUP 3.30 and Lua 5.1, but when I copy iuplua51.exe to my app’s source folder, I get an error when I try to open the console there. Is it because it’s not in the same folder as the .dll files? Originally, the app came with iuplua5.exe and there were no .dll files with it, but if I double click on it, that .exe opens up just fine. I found a .loh file in the source folder that says: /* code automatically generated by bin2c -- DO NOT EDIT */ { /* #include'ing this file in a C program is equivalent to calling lua_dofile(L,"../obj/iuplua5/console.lo"); */ /* ../obj/iuplua5/console.lo */ Do I need to get bin2c and make a new .loh (I don’t know anything about those) or can I just remove the old console.loh and put “lua_dofile(L,"../obj/iuplua5/console.lo");” in the C file? I don’t have a file called “console.lo” so I don’t know where I’d set the directory path. There’s a bunch of code in the C file related to debug and error messages. Would I have to change anything there so it knows to use iuplua51.exe instead? Speaking of the Tools package, I’m glad to see that IupView is still available. The link in the “Simple Paint” tutorial was broken and I didn’t know where to find it other than buried in the “Lua for Windows” files. I do have an idea for a feature for that— It would be useful if there was an option to output the code with indices instead of RGBA values so the colors can be set dynamically. For example, I made some icons that show what a user’s color choices look like together, which is updated when a color picker is used. As a workaround, I chose unique RGBA values for each of my original image’s 3 colors, which made it easy to do a search-and-replace on the IupView-generated Lua code in order to change RGBA into indices. Thanks, Kaz From: Antonio Scuri The latest version is included in the latest "Tools" package in the Downloads. Latest source code is on SVN. Best, Scuri Em seg., 29 de nov. de 2021 às 21:06, Kaz F <kaz.fox...@gmail.com> escreveu:
_______________________________________________ |
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users