r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[SDK]

Graham
28-May-2010
[1620]
I seem to have misplaced my linux sdk license key purchased a few 
years ago.  I thought maybe I could use my windows license key instead 
.. but sadly, no go.  Oh well, emailed sales  to see if they can 
resend it to me.
Graham
31-May-2010
[1621]
Which they did  :)
Louis
18-Jun-2010
[1622]
.
Louis
21-Jun-2010
[1623]
What is the best way to debug software made with the SDK?
Gregg
21-Jun-2010
[1624]
If you mean debugging an encapped app, there is no single best way. 
It depends on the app. If you have a system in place for catching 
errors, and logging them, that can help a lot.
Louis
22-Jun-2010
[1625x4]
Gregg, thanks for responding. What system for catching errors are 
you referring to?
I have an encapped program that has worked for years.  But it contains 
a password, and the password had to be changed. Now it won't work 
when encapped. I get:
** Script Error: Cannot use path on none! value
** Where: insert-event-func
** Near: insert system/view/screen-face/feel/event-funcs :funct
:funct
** Press enter to quit...
If I replace all the #include's with do, and run it with rebview, 
it runs without problem.
Graham
22-Jun-2010
[1629]
sounds like you got your includes in the wrong order
Ashley
22-Jun-2010
[1630]
... or have ommitted the SDK file containing the funct declaration
BrianH
22-Jun-2010
[1631x2]
Louis, were you using a function named 'funct in your encapped application? 
As of 2.7.7, there is now a FUNCT mezzanine.
I don't think that would cause your problem though.
Graham
22-Jun-2010
[1633x2]
The error message says can not use a path on none! so there is a 
problem with view ...
Brian, in insert-event-func, the parameter name is 'funct ... so 
nothing to do with the 'funct mezzanine.
BrianH
22-Jun-2010
[1635x2]
I know that the problem has nothing to do with the FUNCT mezzanine 
- it errors out before then. His *next* problem will have to do with 
using 'funct.
Louis, which encapper are you using? Perhaps you are encapping against 
the wrong binary.
Graham
22-Jun-2010
[1637x2]
eh? how is that possible?
Including the wrong source files ?
BrianH
22-Jun-2010
[1639]
There are 5 encap programs, and it's been years since he last encapped 
this app. Maybe he's using enbase, encmd or enpro.
Graham
22-Jun-2010
[1640]
instead of enface
BrianH
22-Jun-2010
[1641]
Or encmdview, yes.
Graham
22-Jun-2010
[1642]
that does sound the most likely cause
BrianH
22-Jun-2010
[1643]
Oh, I just got it, 'funct is a local parameter - that won't even 
be a problem eventually, nevermind my first message :)
Graham
22-Jun-2010
[1644x2]
yes.. it's a parameter to insert-event-func ... as I mentioned above!
I wonder if it should be renamed though in future ...
BrianH
22-Jun-2010
[1646]
Yeah, that mentioning is what I just got :)
Graham
22-Jun-2010
[1647]
to make this less confusing
BrianH
22-Jun-2010
[1648x3]
Tossing in an ASSERT/type [system/view [object!]] into INSEERT-EVENT-FUNC 
would be even less confusing.
INSEERT -> INSERT
ASSERT is supposed to be added in 2.7.8, as a native.
Louis
22-Jun-2010
[1651]
BrianH and Graham, I was using enpro. Using enface instead solved 
the problem. Many thanks!
Graham
15-Aug-2010
[1652]
Trying to see if .net is installed but this gives me an empty block 


 foreach key keys: list-reg/HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet 
 Settings\5.0\User Agent\Post Platform" [
                print key
 ]

even though I can see it full of keys in the registry ...
eFishAnt
23-Aug-2010
[1653]
is there a reshack.r wrapper anyone has done?
Maxim
23-Aug-2010
[1654]
I just use Call on reshacker directly.
Gregg
30-Aug-2010
[1655x2]
Steve, I'm sending you what I have via email.
Sent.
Henrik
22-Sep-2010
[1657x3]
if I drag a script onto enface.exe and it encaps successfully, where 
is the script put?
or the exe... but it seems no exe is generated.
found it... but not really where I expected it.
Gregg
22-Sep-2010
[1660]
Yes, I never do that Henrik. I've used a number of systems over the 
years (I think I posted my enlist script on rebol.org), and now generally 
use build and encap scripts, with Ladislav's INCLUDE as the foundation. 
In the encap script I include all the reshacker stuff to set the 
icon and version info.
Maxim
22-Sep-2010
[1661]
I even prebol stuff manually before calling the encap it allows for 
a bit more flexibility and control over the whole process.
Henrik
22-Sep-2010
[1662]
Gregg, I never do it either, but was an "emergency build" that needed 
to be done right then :-)
james_nak
22-Sep-2010
[1663]
Gregg, that would be a good tutorial on encapping with the Gregg 
method. I don't do much encapping so each time is a hit or miss and 
I reshack manually which adds to the time.
Gregg
22-Sep-2010
[1664x2]
I'll put it on my to-do list. I'm caught up up through 1993 now. 


The biggest pain with reshacker is version info. I couldn't get it 
to work with version resources as quickly as I wanted so I cheated 
and pump keystrokes to it.
I have a quick and dirty project generator that spits out the basics 
for simple REBOL projects. I'm not sure it's worth publishing, but 
I'm happy to pass it on to anyone who wants to review and comment.
Dockimbel
22-Sep-2010
[1666]
Gregg: you might also achieve it by bypassing reshack for setting 
version info, wrapping BeginUpdateResource(), UpdateResource(), EndUpdateResource() 
from Windows API (feeding it with GetVersionInfo( ) buffer I guess?).
james_nak
22-Sep-2010
[1667]
Gregg, your work is always appreciated. And yes, I spent a few hours 
with version info myself the last time I had the great idea to change 
that. Which just reminded me that I wonder if I bothered to write 
down what did work... Oh, the insanity, oh the inanity.
Gregg
22-Sep-2010
[1668]
Doc, yeah, I've thought about looking at the APIs as well. Somehow 
I just kept hoping RT would make it automatic for us. :-\ Reshacker 
is really great, but far too old to be using like this today. 

James, I'll zap you what I have to review.
james_nak
22-Sep-2010
[1669]
That's true - I feel like we're little kids trying to do big boy's 
work (MS). :-) Of course if it gets the job done...