[comp.sys.mac.programmer] Think C help

gilbert@grad1.cis.upenn.edu (Michael Gilbert) (05/09/90)

I know this is a stupid question, but...

I have a global variable, declared as such:

StringPtr		gTheString;

In a subroutine, I want to read in a string from an STR# file, using
an index like this:

GetIndString (gTheString, STR_RES_ID, stringIndex);

Next, I want to put this string into an alert, in place of a ^0 in
a static text field, so:

ParamText(gTheString, NIL_STRING, NIL_STRING, NIL_STRING);
NoteAlert(THE_ALERT_ID, NIL_POINTER);

However, when I do this, the alert has the string which I used in my
LAST call to ParamText, and this call to it was completely ignored?

If any kind soul would please help me, or give me general help with
string manipulation using THINK C 4.0 (source code?), I would be most
appreciative!

Thanks,

mike gilbert

===============================================================================
| CONSIDER IT DISCLAIMED               | #include <disclaim.h>                |
|-----------------------------------------------------------------------------|
|  _ _ _                               | Better the pride that resides,       |
| ' ) ) )   /                          | In a citizen of the world,           |
|  / / / o /_  _                       | Than the pride that divides,         |
| / ' (_<_/ <_</_                      | When a colourful rag is unfurled     |
| gilbert@grad1.cis.upenn.edu          |      --- Neil Peart                  |
| gilbert@eniac.seas.upenn.edu         |                                      |
|-----------------------------------------------------------------------------|
| CZECHOSLOVAKIA CHIEFS --- IGBA Champs 1984-1985 1986-Tourney 1987 1988-1989 |
===============================================================================

u2zj@vax5.cit.cornell.edu (Stanton Loh) (10/12/90)

Hi,

I am using Think C, and have around 80 projects which periodically
have to be all changed or brought up to date and rebuilt.  Is there
some way to automate the process, instead of opening, changing, re
building each one??  It's becoming a tremendous aggravation.

Thanks for any help,
Stanton Loh
u2zj@vax5.cit.cornell.edu