Solved

Need VBCE API call ImmSIPanelState sample

Posted on 2002-06-28
4
457 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
using Access 8 52
How to debug this code 7 51
Spell Check in VB6 13 52
Macro Excel - Multiple If conditions 2 16
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now