Solved

Need VBCE API call ImmSIPanelState sample

Posted on 2002-06-28
4
468 Views
Last Modified: 2007-12-19
The ImmSIPanelState obtains the state of Input Panel in a PDA (I want to know if the numeric software keyboard is active or if the alphanumeric one is active). The problem is that I don't know if I'm declaring correctly the parameters BECAUSE I ALWAYS GET FALSE as result of the API call.
I NEED a sample code working ok calling this function and evaluating results to demostrate the use of LPVOID in VBCE.

Here is the code I'm trying to use:

Option Explicit
 

'Constants API
Public Const SIP_INPUT_ATTRIBUTES = &H7000
Public Const SIP_INPUT_NUMERIC = &H4
Public Const SIP_INPUT_ALPHANUMERIC = &H8
Public Const SIP_INPUT_HIRAGANA = &H10
Public Const SIP_INPUT_KATAKANA = &H100
Public Const SIP_INPUT_EVERYTHING = &H0
Public Const SIP_INPUT_HALFWIDTH = &H1
Public Const SIP_INPUT_FULLWIDTH = &H2
 
'Declarations API
Public Declare Function ImmSIPanelState Lib "Coredll" (ByVal dwCmd As Long, ByRef pValue As Long) As Boolean
 
Public Sub TestAPI()
 Dim br As Boolean
Dim lp1 As Long
 
lp1 = SIP_INPUT_NUMERIC
br = ImmSIPanelState(SIP_INPUT_ATTRIBUTES, lp1)
 
If br = False Then
    MsgBox ("Error ImmSIPanelState")
Else
    MsgBox ("OK ImmSIPanelState")
End If
End Sub

Regards
0
Comment
Question by:beplluis
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Ryan_231 earned 500 total points
ID: 7116298
according to microsoft this api is only supported
on the japanese version of windows ce 2.0
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcelocal/htm/cerefImmSIPanelState.asp
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964671
Hi beplluis,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Ryan_231's comment(s) as an answer.

beplluis, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:beplluis
ID: 7964852
How can I close a question ?
I have pushed "Accept comment as Answer" some weeks ago
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7969299
Try again.  You will know when it worked because the one you accepted will be highlighted in green, etc.
-- Dan
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question