In debugging my app, I've found that although findParams->strAsTyped has
the string that the user entered, findParams->strToFind has garbage in it!
Anybody know why?
Thanks!
Below is the code that calls the search routine.
DWord PilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
{
Word error = RomVersionCompatible (version20, launchFlags);
if (error)
return error;
switch(cmd)
{
case sysAppLaunchCmdNormalLaunch:
PrefGetPreferences(&SysPrefs);
// Initialize the application's global variables and database.
StartApplication();
// Start the event loop.
EventLoop();
// P5. Clean up before exiting the applcation.
StopApplication();
break;
case sysAppLaunchCmdFind:
Search ((FindParamsPtr)cmdPBP);
break;
- Alan Macy
http://www.ResponsiveSoftware.com
Time and Billing for Consultants and Others