Your most likely cause for these errors is that your version of the SDK is either more updated than the code (or vice versa) and the updates contain altered function parameters. Check your local help files (not the online help which may differ), and if in doubt, locate the actual functions in question in the SDK and inspect the calling parameters.