setting Metamorph Parameters

Post Reply
sbeavers
Posts: 9
Joined: Wed Jan 31, 2001 7:31 pm

setting Metamorph Parameters

Post by sbeavers »

I am using the Metamorph APi and have a couple of questions concerning the APICP parameters. I need to set exactphrase 'on'. I tried cp->exactphrase=(byte)1 where cp is a valid apicp pointer but then I am unable to successfully open the mmapi via the openmmapi.

I also need to set the post processing on via defsuffrm. I tried cp->defsuffrm=(byte)0. However if I do this then I get a memory acces violation when I close the api. Any ideas or suggestions?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

setting Metamorph Parameters

Post by bart »

Both things sound like maybe the apicp handle is not correct.

Do you have code similar to this in your app?

if((cp=openapicp())==APICPPN)
{
putmsg(MERR,Fn,"Could not create control parameters structure");
exit(255);
}
sbeavers
Posts: 9
Joined: Wed Jan 31, 2001 7:31 pm

setting Metamorph Parameters

Post by sbeavers »

Yes, that is almost exactly what I have. The openapicp() executes without a error. The Metamorph search functions are working. I just have trouble with these 2 parameters.
sbeavers
Posts: 9
Joined: Wed Jan 31, 2001 7:31 pm

setting Metamorph Parameters

Post by sbeavers »

Thanks guys, the /Zp2 compile switch did the trick!
Post Reply