A 64-bit Windows system prevents 32-bit applications from accessing System32 directory. For that purpose, it redirects to SysWOW64.
You can (temporarily) disable that redirection by calling Wow64DisableWow64FsRedirection.
Although it may work, WinExec is a 16-bit legacy function. You should use CreateProcess instead.
The above example is intentionally made as simple as possible. It doesn't handle errors, uses a hard-coded path and does not check if the system is 32 or 64-bit version. You have to complete that yourself.
Thanks ovidiucucu, I tried your code and it manage to call up the on screen keyboard.
Also, I did try the WinExec using code below, it works as well.
Appreciate your help on this.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.