1. copy Lib_call.class to a folder e.g e:/mp/Lib_call.class then open mobpascal and enter
- program callexample;
- uses call;
- begin
- call.Phone(+911);
- delay(5000);
- end.
2. now press option save in the folder you used above, here we used e:/mp as eg. callexample.mpas then press ok, then press compile, it will generate a class file (FW.class) in a folder with the name you used in saving your script in the folder you used above, here our classfile is e:/mp/callexample/FW.class
3. Exit mobpascal and open preverifer then verify the Generated FW.class file, then exit preverifer
4. Open mobpascal and click on open, then search for the classfile that was generated from the preverifer, click on it, mobpascal will bring a prompt for building your app eg. Midlet name, Midlet vendor etc the press option and click on add resources then add Lib_call.class as resource and build.
But i dont know why, after everything i compile and it shows
Application error:
Details->
unhandled exception:
incompatible class change error
com.ibm.oti.error.IncompatibleClassChangeError FW.fw
i guess it a bug and i know gurus in the house should assist us in fixing it (even the author, which i dont normally see online).
Cause it the same in most library i have tested.