Log in

View Full Version : 2 OTs: resource edit & script interp'r


Silver
September 21st, 2005, 06:28
Hi guys,

Way off topic, but that's what this forum is

Question 1: I want to implement a very basic scripting interpreter into an app. I'd like it to accept pseudocode input (Text.out "Hello world" and it interpret it to win32/c++ calls (hDC = GetDC(hwnd); TextOut(hDC, 0, 0, "Hello World", 12). I know there are some extensible script interpreters out there (LUA for example) but they seem quite complex. I don't want to learn a new language just to implement this, so has anyone developed anything similar before and can give me a pointer to a good place to start? The purpose of the script interpreter is to allow end-users without technical knowledge to interact with part of an application.

Question 2: Anyone recommend a good resource editor? Not a resource editor for resources linked into EXE/DLL's (like ResHacker), I'm looking for a good resource editor that will let me draw icons, cursors etc. Loads out there, so personal recommendations are appreciated

Thanks!

dELTA
September 21st, 2005, 07:41
1.
The combination Flex/Yacc/Bison is extremely powerful and common when creating own scripting engines and compilers (you might not even need more than one of them in your case), even on a fully professional level. They're not that hard to use really, so I recommend you at least take a look at them e.g. here:

http://dinosaur.compilertools.net/

2.
The suite of tools from Microangelo (http://www.microangelo.us) was very nice the last time I checked. They have been in the game from a really long time, and the only downside to their tools might be that they have become somewhat bloated.

LLXX
September 22nd, 2005, 02:11
Quote:
Question 2: Anyone recommend a good resource editor? Not a resource editor for resources linked into EXE/DLL's (like ResHacker), I'm looking for a good resource editor that will let me draw icons, cursors etc. Loads out there, so personal recommendations are appreciated

Since you asked for personal recommendations... I like BRW (Borland Resource Workshop) v4.5. It's a bit dated (c.1994) and for example doesn't have LFN support, but it can handle PE files as well as a variety of other formats (.RC, .RES, .OCX, .DLL, etc.). Has a built-in bitmap font editor too. I believe it can be found on Fravia's site.

dELTA
September 22nd, 2005, 03:34
LLXX, maybe you should read the text you quoted in your post again...

Silver
September 22nd, 2005, 13:59
Thanks dELTA, I'll take a look at both!

TQN
September 22nd, 2005, 21:05
Hi Silver, why do you not use the Resource Editor of VC++ 6 or VC .NET 200x.

LLXX
September 22nd, 2005, 23:03
Quote:
[Originally Posted by dELTA]LLXX, maybe you should read the text you quoted in your post again...

You mean this part?
Quote:
I'm looking for a good resource editor that will let me draw icons, cursors etc.

BRW 4.5 doesn't just edit resources it can also create/save/edit the following:

- RC resource script
- DLG resource script
- CUR cursor image
- ICO icon image
- EXE application
- DLL, VBX, CPL libraries
- FON fonts
- DRV device drivers