Michael.Johnson;
I think you need to convert the string into a c string first. Try the following (new code in bold. Disclaimer: I haven't check it yet!!):
/* CIN source file */
#include "extcode.h"
MgErr CINRun(LStrHandle *String_In, uInt32 *Integer_In);
MgErr CINRun(LStrHandle *String_In, uInt32 *Integer_In)
{
char cstring[20]=""; /* WARNING: Modify the length of the string to suite your needs */
/* WARNING: You may want to check first if cstring is large enough before performing the next operation */
SPrintf(cstring, "%H", String_In);DbgPrintf("%H\n",
*cstring);
DbgPrintf("%d\n",*Integer_In);
return noErr;
}
/* END CIN source file */
Regards;
Enrique
Message Edited by Enrique on 04-05-2005 11:22 AM
www.vartortech.com