This is a Windows problem.NOW what resulted in the application behaving differently when run from command prompt and when run from desktop shortcut. Is it a Xbase++ problem or Windows Os problem.
If you want to run the app from a command prompt, you need to use the RUNAS command.