[comp.sys.mac.programmer] Scrap Manager pronlem

jyp@wucs1.wustl.edu (Jerome Yvon Plun) (01/21/91)

I am using the scrap Manager to communicate between two programs, more 
precisely to let one program leave some informations for the other.  I also
use the clipboard to get some informations to start the first program.

I use the following code at the end of the first program: (think C)

retval=LoadScrap();
retZero = ZeroScrap();
rtPut = PutScrap(lengthScrap,'TEXT',toScrap);
retval = UnloadScrap();t

If I look at the scrapbook after these calls, it contains exactly what
I expect to be in.  But, once the application is terminated
the scrapbook still contains what was in it before launching the application.

Can some kind soul let me know what I am doing wrong?

Thanks. 

jerome

Jerome Plun	jyp@wucs1.wustl.edu       // Tell me why is it so hard to say
Dept of Computer Science                  // Brother don't you walk away
Washington University                     //
St. Louis, Mo                             // Hooters     "Zig Zag"