World: r3wp
[SDK]
older newer | first last |
eFishAnt 28-May-2008 [1108] | you _are_ a supicious person, aren't you. Comes from dealing with software. I know it jaded me, too. |
BrianH 28-May-2008 [1109] | Diagnosis is detective work :) |
eFishAnt 28-May-2008 [1110x3] | but in America, we cannot execute shells because of suspicion, we must call for proof by the script of the law. |
anyway, I did do a conditional run so the code works both ways, except that I have to edit the script to make it encap. ( #include %view.r ;that sort of thing) | |
Not sure, but I may have planted the initial seed for SDK...I was raving to Carl about the MKS toolkit awkc (awk compiler). However, for awkc I don't have to edit the awk script before compiling. | |
BrianH 28-May-2008 [1113x2] | Do you want the current directory or the script directory? For the script directory, try system/script/path. |
The current is system/options/path. | |
eFishAnt 28-May-2008 [1115x3] | I want it to run and process files in the current directory. However, I already been there, done that, and it ain't worked. |
I fixed by doing this: either none? find system/options/boot "imagesave.exe" [ print %. ;script ][ print change-dir first split-path system/options/boot ;encap ] | |
the prints were only there to be sure. | |
BrianH 28-May-2008 [1118x4] | If you run a program by double-clicking it from explorer, the working directory is set to the directory the program is in. Otherwise the working directory is either the directory you are in in the command prompt, that set in the shortcut properties, or the working directory in your program you are starting the program from. I use this to make file management tools that work on the current directory all of the time. |
Apparently the system/script settings aren't getting set from encapped apps (after testing). The system/options/path setting is the current directory that the program or script is called from, while system/script/path is the current directory inside REBOL. When REBOL runs a script it sets the system/script settings a little different that it does when the script is encapped, but the system/options settings are basically the same, with the exception of the name of the file in system/options/boot. If you want to distinguish between the two situations, check for whether system/options/script is a file (script) or none (encapped). | |
Keep in mind that the "current directory" of REBOL is different from that of Windows, and both can be different from the directory the program or script is in. Pick the directory you want to use and go for it. | |
If you want the script/program directory, try this: change-dir first split-path any [system/options/script system/options/boot] | |
eFishAnt 29-May-2008 [1122] | that's essentially what I am doing. There are these gotchas in the SDK that surprise you when your script works, you build and it breaks. awkc doesn't do that. That's what I was saying...just some feedback, ya know. |
Josh 16-Jun-2008 [1123] | How do you change the publisher(?) information on an .exe produced with SDK? (So it doesn't say "REBOL Technologies...") I remember doing it before with some tool, but I can't seem to find it at the moment. |
Gregg 16-Jun-2008 [1124] | You need to edit the VERSIONINFO resource. |
Josh 16-Jun-2008 [1125] | Are there any good freeware tools to do this? |
Gregg 16-Jun-2008 [1126] | ResHacker has been around for a long time. Unsupported now, but works against most PE files. ResourceTuner seems more up to date, but costs (they have a trial I think). There are some other links here: http://www.thefreecountry.com/programming/resourceeditors.shtml |
Ashley 18-Jun-2008 [1127] | http://www.dobeash.com/RebGUI/cookbook.html#section-2.3 |
Pekr 18-Jun-2008 [1128x2] | Could anyone explain, what does following stupid hack mean? ;-- Must be done prior to loading anything that requires fonts on Linux. layout [text "imanXwin kludge"] ;-throw this one away soon-- okay? open-events |
It actually prevents SDK from rebface + rebgui usage. So instead of fixing crashes we do like above? | |
Gregg 18-Jun-2008 [1130] | IIRC, it initializes X or something. |
Henrik 18-Jun-2008 [1131] | what about changing the hack to the resulting layout object. shouldn't that work the same way? |
[unknown: 5] 18-Jun-2008 [1132] | http://en.wikipedia.org/wiki/Kludge |
Pekr 18-Jun-2008 [1133] | hmm, interesting henrik, it could work .... so you think that e.g. make face! or rebgui equivalent should be sufficient? |
Henrik 18-Jun-2008 [1134x2] | well, LAYOUT is a mezz and everything that happens to build that face is a mezz, so there should be a way to extrapolate a new hack that doesn't require VID. |
the way I see it, try a simple make face [text: "simplerhack" font: make face/font []] I don't know if the font object is directly available in rebface, but try it. | |
Pekr 18-Jun-2008 [1136x2] | ok, but when my friend on linux commented those lines out, it crashed. The question is why? Isn't rebgui initialising x-win in some way too? |
I will try to look for some equivalents and let my friend to try it .... | |
Henrik 18-Jun-2008 [1138x2] | actually I think it is. when we were fixing 2.7.6 for OSX Leopard we had a very similar problem and I had to build rebface with a face that loaded a font. it was done entirely without VID. |
I guess you can't just use the resulting layout object. It's very large. | |
Graham 28-Jun-2008 [1140] | Not really sdk, but I've finally found a use for those fast launch buttons on my laptop .. they now encap the latest versions of my software .. much easier than finding the compile.cmd script in the now very large source directory! |
Louis 3-Aug-2008 [1141x7] | I'm trying to use the |
'call' command to call dar (Disk Archive), but I get this: | |
---- exception type = [DECI] ---------- [source] deci.cpp : digit_htoc : invalid decimal digit deci.cpp : digit_htoc : deci::deci : string [most outside call] ----------------------------------- INTERNAL ERROR, PLEASE REPORT THE PREVIOUS OUTPUT TO MAINTAINER | |
The command I'm calling works fine when entered at the console. Any idea what is causing this problem? | |
Here is one of the source code files for dar which shows where the error is coming from (I think), but I don't know cpp. | |
http://www.sfr-fresh.com/unix/privat/dar-2.3.8.tar.gz:a/dar-2.3.8/src/libdar/deci.cpp | |
Figured it out. It was a dar problem, and not a rebol problem. My script is working now. | |
xavier 18-Aug-2008 [1148x2] | hello, i have a slight problem. i already have a sdk licence for windows and i need the sdk for linux |
i know its possible to have it for 1 dollar but i dont find the way to have it | |
Graham 18-Aug-2008 [1150] | That's news to me. I paid $50 less for my linux sdk. |
xavier 18-Aug-2008 [1151] | you already had the windows sdk ? |
Graham 18-Aug-2008 [1152x2] | Yes. |
I had the windows command sdk. | |
btiffin 18-Aug-2008 [1154] | xavier; Drop Cindy a note. She may be able to help you out, or at the very least, she knows what's what and is the final arbiter afaik. Start at http://rebol.com/contacts.html |
Alan 14-Sep-2008 [1155] | . |
amacleod 21-Nov-2008 [1156] | Just ordered the SDK but I have not yet received the confirmation email. Is there usually a long delay? |
Henrik 21-Nov-2008 [1157] | Is the SDK being sold anymore? |
older newer | first last |