Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!news From: dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) Newsgroups: comp.sys.mac.programmer Subject: Str255 Message-ID: <1991Jan31.061259.20093@ux1.cso.uiuc.edu> Date: 31 Jan 91 06:12:59 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 26 I am using Think C 4.0 with TCL. I am trying to use the gBartender class to change menus. On page 246 of the manual, it gives an example: gBartender->SetCmdText(cmdCopy, "\pCopy Picture"); The second argument is supposed to be a Str255. If I use the command just like this, the compiler doesn't recognize the second argument as being the right type. I can get around this by creating a variable of type Str255 and copying "\pCopy Picture" into that variable. This is ok, but according to the documentation, I shouldn't have to do that. I have two questions: (1) Am I doing something wrong, or is the documentation messed up? (2) Is there a way to do this without declaring a variable? Thanks. -- David M. Marcovitz | internet: marcovitz@uiuc.edu Computer-based Education Research Lab | dmmg1176@uxa.cso.uiuc.edu University of Illinois | novanet: marco / cca / cerl