Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!psuvm.bitnet!rice.bitnet!storkel From: STORKEL@RICE.BITNET (Scott Storkel) Newsgroups: comp.sys.mac.programmer Subject: I thought I knew C, but... Message-ID: <341STORKEL@RICE> Date: 27 May 88 16:29:42 GMT Organization: Rice University - ICSA Lines: 36 Okay, I give up. Could somebody please explain the following problem to me? I tried to compile the following piece of code using MPW C: void convertfile() { SFReply myreply; Point where; SFTypeList mylist; where.v=40; where.h=40; mylist[0]="WORD"; SFGetFile(&where, "File to convert?",nil,1,mylist,nil,&myreply); } Looks like it should put up an SFGetFile dialog box listing only MacWrite files right? WRONG. When compiling, it gives a "warning: illegal combination of pointer and integer" error on the line containing mylist[0]="WORD". So, I try all kinds of things to fix it, until I've almost driven myself crazy. Then I change the offending line to the following: mylist[0]='WORD'; Just changing the double quotes to single quotes makes everything work fine. No compiler warnings, and MacWrite files do indeed show up in the dialog box. So, my question is WHY? What is the big difference between single and double quotes, and how do you know when to use them? If someone could please enlighten me I would greatly appreciate it. Please e-mail responses directly to me if possible. Thanks, Scott Storkel Macintosh Software Development Rice University Houston, Texas