Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > on-screen keyboard issue on Win7 64-bit

Reply
Thread Tools

on-screen keyboard issue on Win7 64-bit

 
 
Arshif
Guest
Posts: n/a
 
      03-18-2010
I am running my 32 bit application on a Win7 64-bit machine and when my code
tries to open the on-screen keyboard via the ShellExecute command, e.g.
ShellExecute(NULL,_T("open"),_T("osk.exe"), NULL, NULL, SW_SHOWNORMAL), the
osk process runs but shows the message "Could not start On-Screen Keybaord."

I can run it manually from cmd so the osk works properly. I think the
reason why it is failing has something do to because my 32 bit application
is trying to run the 32 bit version of osk. When I just run osk from cmd,
it runs the 64 bit version. So perhaps the 32 bit version of osk is not
working but I can't tell if this is the case since I can't run the 32 bit
version manually even if I go to the system32\syswow64 folder and run osk.

I also modified my application so that it starts cmd.exe instead and when I
type osk in there, I get the same error message. In this case, the 32 bit
version of cmd was opened so I am thinking it has to do with running a 32
bit version.

Does anyone know what would cause the osk to show the "Could not start
On-Screen Keyboard" message? Is it some configuration issue?


 
Reply With Quote
 
 
 
 
Charlie Russel - MVP
Guest
Posts: n/a
 
      03-18-2010
Your 32-bit application is, as you surmise, only able to call the 32-bit
version of the on-screen keyboard. I'm guessing that the 32-bit version
can't run in 64-bit explorer correctly, but honestly don't know why that
would be. However, I'd speculate that it isn't allowed to run because it
can't interact correctly with the 64-bit Explorer shell.

Normally, your 32-bit application doesn't "see" the 64-bit version of the
filesystem or executables. From a 32-bit CMD window, for example:
C:\Windows>dir system32\osk.exe
Volume in drive C has no label.
Volume Serial Number is 0A61-DFB7

Directory of C:\Windows\system32

13/07/2009 06:14 PM 646,144 osk.exe
1 File(s) 646,144 bytes
0 Dir(s) 55,493,632,000 bytes free

C:\Windows>dir syswow64\osk.exe
Volume in drive C has no label.
Volume Serial Number is 0A61-DFB7

Directory of C:\Windows\syswow64

13/07/2009 06:14 PM 646,144 osk.exe
1 File(s) 646,144 bytes
0 Dir(s) 55,493,632,000 bytes free

BUT, from a 64-bit CMD window:

C:\>dir windows\system32\osk.exe
Volume in drive C has no label.
Volume Serial Number is 0A61-DFB7

Directory of C:\windows\system32

13/07/2009 06:39 PM 692,736 osk.exe
1 File(s) 692,736 bytes
0 Dir(s) 55,493,619,712 bytes free


There are specific calls that can be used from a 32-bit application to allow
it to explicitly call a 64-bit EXE. I'm not enough of a programmer to point
you at them, but if you ask over on the MSDN forums, someone should be able
to. Or I may have given you enough to go on to binggle the correct answer.

--
Charlie.
http://msmvps.com/blogs/russel




"Arshif" <> wrote in message
news:FAAB2528-9D5F-4AC1-8CFB-...
>I am running my 32 bit application on a Win7 64-bit machine and when my
>code tries to open the on-screen keyboard via the ShellExecute command,
>e.g. ShellExecute(NULL,_T("open"),_T("osk.exe"), NULL, NULL,
>SW_SHOWNORMAL), the osk process runs but shows the message "Could not start
>On-Screen Keybaord."
>
> I can run it manually from cmd so the osk works properly. I think the
> reason why it is failing has something do to because my 32 bit application
> is trying to run the 32 bit version of osk. When I just run osk from cmd,
> it runs the 64 bit version. So perhaps the 32 bit version of osk is not
> working but I can't tell if this is the case since I can't run the 32 bit
> version manually even if I go to the system32\syswow64 folder and run osk.
>
> I also modified my application so that it starts cmd.exe instead and when
> I type osk in there, I get the same error message. In this case, the 32
> bit version of cmd was opened so I am thinking it has to do with running a
> 32 bit version.
>
> Does anyone know what would cause the osk to show the "Could not start
> On-Screen Keyboard" message? Is it some configuration issue?
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win7 Pro keyboard misbehavior GS Windows 64bit 5 03-15-2013 05:55 AM
Win7 Pro x64 dies with BSOD on my toshiba laptop (Win7 Retail/RTM) Warren Postma Windows 64bit 6 11-20-2009 11:23 PM
Win7: nvidia driver issue James Snell Windows 64bit 5 07-27-2009 05:19 PM
Win7 & (SQL2005 / SQL2008) Integrated Security issue / across domains Martin Knauer Windows 64bit 1 07-07-2009 02:59 PM
Microsoft Keyboard 3000 fails in Chkdsk screen in Win7 Kue2 Windows 64bit 12 01-15-2009 12:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57