I am getting authorization failure Description of code: There is a function InitInstance() which is called when the application is initialized. This function creates an object named 'pSampleApplication' of class 'SampleApplication'. The production ID of the application is passed into this class. The debug ID of application is used instead of the production ID during development. The object then calls the BeginEvent(). If it returns some value then 'if' block is executed and the code flow reaches to the actual code of the application. In the other case the 'else' block is executed and the message "Application authorization failed" is displayed. Please ask me if you have any doubt/query in the code. Thanks, Khan
For more complete information about compiler optimizations, see our Optimization Notice.